centos 自启动

https://blog.phpha.com/backup/archives/1458.html

1.服务

chkconfig 服务名 on

查看所有可以

chkconfig --list

 

2 修改 /etc/rc.d/rc.local 这个文件

vi /etc/rc.d/rc.local
#添加以下命令
/usr/sbin/apachectl start
/etc/rc.d/init.d/mysqld start
/etc/rc.d/init.d/smb start
/usr/local/subversion/bin/svnserve -d

 

posted @ 2016-10-20 21:54  忘忧般若汤  阅读(135)  评论(0编辑  收藏  举报