linux使用某非root用户执行开机启动项

linux非root用户执行开机启动程序

https://www.cnblogs.com/lanyangsh/p/8543433.html

 

[root@nginx rc.d]# cd /etc/rc.d
[root@nginx rc.d]# sed -i '13a /usr/local/nginx/sbin/nginx' /etc/rc.d/rc.local
[root@nginx rc.d]# chmod u+x rc.local

 

cp -a /data/app/mysql/support-files/mysql.server /etc/init.d/mysql
chmod +x /etc/init.d/mysql

systemctl unmask mysql
systemctl status mysql

【Linux】关于 CentOS7.x /etc/rc.d/rc.local

https://www.jianshu.com/p/6efacf467630

 

linux使用某非root用户执行开机启动项

https://blog.csdn.net/sevenkj/article/details/52153369

centos6.9配置修改/etc/rc.d/rc.local文件之后,重启后无法进入系统的解决问题。

https://blog.csdn.net/weixin_40327259/article/details/80774559

centos设置开机启动文件/etc/rc.d/rc.local

https://blog.csdn.net/weixin_44707404/article/details/107528112

linux指定某非root用户执行开机启动项的方法(gogs git)

https://www.cnblogs.com/liqing1009/p/6724549.html

posted @ 2022-01-02 23:41  tonggc1668  阅读(1046)  评论(0编辑  收藏  举报