最方便的方法:
编辑 /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 脚本绝对路径 参数
例如:
#start tomcat and apache
sh /root/bin/apache start;
sh /root/bin/tomcat start;
sh /usr/bin/gitlab-ctl start;