新增並修改檔案:
vim /etc/rc.local
在結尾 exit 0 之前新增要執行的語法
然後開啟服務
Debian 8:
update-rc.d rc.local defaults
Debian 9:
systemctl start rc.local
systemctl status rc.local
業餘程式設計、遊戲伺服器架設、網站經營的部落格。
新增並修改檔案:
vim /etc/rc.local
在結尾 exit 0 之前新增要執行的語法
然後開啟服務
Debian 8:
update-rc.d rc.local defaults
Debian 9:
systemctl start rc.local
systemctl status rc.local