1.开机自启动apache
Python代码
/sbin/chkconfig httpd on  

 2.开机自启动mysql
Python代码  
/sbin/chkconfig mysqld on  

 3.查看启动服务列表
Python代码
/sbin/chkconfig --list