Linux 开机自启动
1.重编"/etc/rc.local"
# 编辑rc.local
vim /etc/rc.local
# 添加执行脚本/命令
# 1制定目录下的制定脚本文件
/xxx/./xxx.sh
# 2制定目录下的制定脚本文件
cd /xxx && ./xxx.sh
# 注意 [新增命令必须在 exit 0 之前]
2.在/etc/init.d目录下添加自启动脚本
windows开机自启动
找到-进入StartUp目录 添加待开机运行脚本(xxx.bat)的快捷方式
win7
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
win10
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp