ubuntu环境下如何设置开机启动项
1.找到对应配置文件,并进行修改。打开默认的rc-local.service配置文档
2.编写脚本。编写下面的文件
3.启动执行。systemctl start rc-local # 启动 systemctl restart rc-local # 重启 systemctl status rc-local # 查看状态,如果是active就表示没问题了

如有侵权请及时联系我们处理,转载请注明出处来自
随机推荐
科技快讯 |备案号:( 沪ICP备2026008940号-1 )