直接编辑文件 /etc/rc.local
vim /etc/rc.loca 或者 vi /etc/rc.loca
出现
======================================
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff
touch /var/lock/subsys/local
==============================================
在文件中加上你需要启动的程序或命令
如我在VPS里面做了个开机就访问自己的网站
elinks --dump http://www.dzxx.cn/
编辑完后:w :q 然后REBOOT
一次性测试成功