Standard method:/sbin/chkconfiglist to view the list of services that can be started/sbin/chkconfighttpdon to enable auto-start. if the service cannot be found, you can try to use the rc. local file. 1. edit the rc. local file # vi/etc/rc. d/rc. local2 and add the following startup command/usr/sbin/apachectlsta.
Standard method:
/Sbin/chkconfig list view the list of services that can be started/sbin/chkconfig httpd on enable auto-start
If you cannot find the file in the service, try to use the rc. local file.
1. edit the rc. local file
#vi /etc/rc.d/rc.local
2. add the following startup command:
/usr/sbin/apachectl start/etc/rc.d/init.d/mysqld start/etc/rc.d/init.d/smb start/usr/local/subversion/bin/svnserve -d
3, note: my path is yum installation of these services to obtain the path, fill in according to their own installation path, can not find the help of whereis command (usage see http://hi.baidu.com/linglongwunv/blog/item/92641add86cb3da8cc42464b.html ), it mainly finds the three startup files apachectl, mysqld, and smb.
4. note: svn is not installed by yum. find svnserve in the bin directory in your installation directory.
Reprinted from www. webmaster. me