###自动启动 #用户登陆后会自动运行的sh脚本顺序,常用于配置环境变量 /etc/profile.d/file /etc/profile /etc/bashrc /root/.bashrc /root/.bash_profile #开机自启动,与用户登陆无关 /etc/rc.local -> rc.d/rc.local /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local vi /etc/rc.d/rc.local /usr/bin/sh /opt/reboot.sh /usr/bin/curl http://192.168.1.34/test/reboot.sh | /usr/bin/sh