最方便的方法:
编辑 /etc/rc.local
用sh 脚本绝对路径 参数
例如:
#start tomcat and apache
sh /root/bin/apache start;
sh /root/bin/tomcat start;
sh /usr/bin/gitlab-ctl start;
本文介绍了一种通过编辑 /etc/rc.local 文件实现开机自动启动多个服务的方法。具体包括使用 sh 脚本来启动 Apache、Tomcat 和 GitLab 服务。
最方便的方法:
编辑 /etc/rc.local
用sh 脚本绝对路径 参数
例如:
#start tomcat and apache
sh /root/bin/apache start;
sh /root/bin/tomcat start;
sh /usr/bin/gitlab-ctl start;
490

被折叠的 条评论
为什么被折叠?