Linux 源码包服务的管理

源码包安装服务的启动

使用绝对路径,调用启动脚本来启动。不同源码包的启动脚本不同,可以查看源码包的安装说明,查看启动脚本的方法

/usr/local/apache2/bin/apachectl start|stop

自启动

修改/etc/rc.d/init.d文件,把源码包的启动命令写入此文件即可

让源码包服务被服务管理命令识别

让源码包的apache服务被service命令来启动

ln -s /usr/local/apache2/bin/apachectl /etc.init.d/apache

原文地址:https://www.cnblogs.com/andrew3/p/12901683.html