Linux 開機 啓動 服務

1、編輯 rc.local 文件

     # vi /etc/rc.local

2、把服務路徑 放入文件中 如下所示:

   # this is start |  nexus { console | start | stop | restart | status | dump }


   /nexus-2.11.2-06/bin/nexus start

   /usr/local/tomcat/apache-tomcat-7.0.61/bin/startup.sh

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