ubuntu下設置開機自啓動項

最方便的方法:

編輯 /etc/rc.local 

用sh 腳本絕對路徑 參數


例如:


#start tomcat and apache
sh /root/bin/apache start;
sh /root/bin/tomcat start;
sh /usr/bin/gitlab-ctl start;



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章