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查看是否程序
相关文章
相关标签/搜索