linux 命令系列之 基于源码包安装服务的启动(67)
2015-05-17 22:43
441 查看
1.使用绝对路径
eg:/usr/local/apache/bin/apachectl start|stop
2.源码包自启动
vi /etc/rc.d/rc.local 加入
/usr/local/apache2/bin/apachectl start
3.让源码包的apache服务能被chkconfig与ntsysv命令管理自启动
vi /etc/init.d/apache
# chkconfig: 35 86 76
#指定httpd脚本可以被chkconfig命令管理,格式是:
chkconfig:运行级别 启动顺序 关闭顺序
# description: source package apache
#说明,内容随意
3.让源码包服务被服务管理命令识别
让apache服务能被service命令管理启动
ln -s /usr/local/apache2/bin/apachectl /etc/init.d/apache
eg:/usr/local/apache/bin/apachectl start|stop
2.源码包自启动
vi /etc/rc.d/rc.local 加入
/usr/local/apache2/bin/apachectl start
3.让源码包的apache服务能被chkconfig与ntsysv命令管理自启动
vi /etc/init.d/apache
# chkconfig: 35 86 76
#指定httpd脚本可以被chkconfig命令管理,格式是:
chkconfig:运行级别 启动顺序 关闭顺序
# description: source package apache
#说明,内容随意
3.让源码包服务被服务管理命令识别
让apache服务能被service命令管理启动
ln -s /usr/local/apache2/bin/apachectl /etc/init.d/apache
相关文章推荐
- Linux下采用二进制源码安装mysql,并配置使用mysqld命令启动服务
- linux 命令系列之 查询已安装的服务 (64)
- linux 命令系列之 基于xinetd服务(66)
- Linux软件包安装2——基于red hat系列的rpm命令安装及apache简单搭建httpserver
- Linux/CentOS 服务安装/卸载,开机启动chkconfig命令详解|如何让MySQL、Apache开机启动?
- linux APACHE2.2.10源码安装服务自动启动脚本
- Linux下已经安装了vsftpd软件包,并且vaftpd服务已启动,为什么输入命令ftp时还是提示command not found
- linux设置开机服务自动启动/关闭自动启动命令
- linux启动和停止syabse服务命令
- linux下将编译安装的服务设置为开机启动
- linux下启动相关oracle服务与监听的命令
- linux设置开机服务自动启动/关闭自动启动命令
- linux安装并启动ssh服务
- linux设置开机服务自动启动/关闭自动启动命令
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- Linux下打开启动服务命令(chkconfig、ntsysv),查看开启了哪些服务
- linux设置开机服务自动启动/关闭自动启动命令
- 服务命令Linux安装配置apache
- Linux下安装jboss并设置自启动服务
- Linux下安装jboss并设置自启动服务