centos 下mysql和apache 自动启动的有关问题
centos 下mysql和apache 自动启动的问题
1.确保/etc/rc.d/init.d/mysqld 存在,用service mysqld start能够正常启动
2.运行命令:chkconfig --add mysqld
3.运行命令: chkconfig --level 345 mysqld on
4.重启即可.
apache 的httpd服务与上述类似。
转载 http://qihaihui.iteye.com/blog/228528