centos 自启动

Posted 忘忧般若汤

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于centos 自启动的主要内容,如果未能解决你的问题,请参考以下文章