
我的 CentOS 伺服器上安裝了一個應用程式。為了運行它,我必須運行這兩個命令。
[myserver local]# cd /usr/local
[myserver local]# #ppbed start
誰能向我解釋如何讓這個應用程式ppbed
在啟動時啟動?
我應該注意到它ppbed
也位於我的/etc/init.d/
資料夾中,但它沒有執行。
答案1
即使您已經在/etc/init.d/
資料夾中獲得了腳本,您仍然需要將其新增至 chkconfig。
我就是這樣做的
[myserver local]# chkconfig --level 345 ppbed on
就是這樣。現在它在啟動時運行。