linux系統如何設置程序開機自啓動

在終端中輸入:nano /etc/rc.local回車進入rc.local在文本 在文本的exit 0前添加需要啓動的程序。 腳本啓動方式:/home/find/start.sh start python程序啓動方式:python3 /home/find/b999.py c/c++程序啓動方式:sudo /home/program/main 重啓:reboot後,ps -ef|less查看是否程序
相關文章
相關標籤/搜索