Linux CentOS 把腳本、程序設置開機自啓動

開機啓動系統文件:/etc/rc.d/rc.local

開機啓動腳本:/root/a.sh

開機啓動程序:vsftpd


添加系統文件可執行權限:su chmod +x  /etc/rc.d/rc.local

在系統文件/etc/rc.d/rc.local末行添加:

sh  /root/a.sh  &

/etc/rc.d/init.d/vsftpd  start

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