linux /etc/init.d/ 服務腳本

1. 腳本寫好後放入到 /etc/init.d/目錄下,並設置可執行權限chmod +x scriptnamedbash 2. 腳本中包含start,stop,restart,status幾種方法,dom /opt/myservice/myservice.sh腳本能夠添加你本身想要執行的操做 rest 例子以下:server #!/bin/bash #chkconfig:1234 90 60 #
相關文章
相關標籤/搜索