原文作者:czm21 戳进时空门吧! 解释:脚本头部写上#chkconfig:和#description这两行后,并把脚本放到/etc/init.d/,再运行chkconfig --add 脚本名,就不需要再执行ln和chkconfig服务名on了。 转载于:https://blog.51cto.com/zhukeqiang/1724631