标签:chkconfig
chkconfig
chkconfig --add servername
chkconfig --del servername
chkconfig --level 35 servername on
vim /etc/rc.d/rc.local
service servername start
设置服务为开机自启动
原文地址:http://mustafayin.blog.51cto.com/12558614/1941346