apache与mysql添加进系统服务并设置开机开启
发布时间:2022-03-07 10:48 所属栏目:115 来源:互联网
导读:apache与mysql添加进系统服务并设置开机启动 apache 1 cp /usr/local/apache/bin/apachectl /etc/init.d/httpd 2 chkconfig --add httpd 出现错误service httpd does not support chkconfig 打开 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面) # chkconfig
apache与mysql添加进系统服务并设置开机启动 apache 1 cp /usr/local/apache/bin/apachectl /etc/init.d/httpd 2 chkconfig --add httpd 出现错误service httpd does not support chkconfig 打开 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面) # chkconfig: 345 85 15 # description: Activates/Deactivates Apache Web Server 345代表哪些Linux级别需要启动httpd, 启动序号是85, 关闭序号是15 3 chkconfig httpd on mysql 1 cp /root/tools/mysql-5.1.72/support-files/mysql.server /etc/init.d/mysqld 1.1 chmod 700 /etc/init.d/mysqld 2 chkconfig --add mysqld 3 chkconfig mysqld on 由此来总结添加方法。 (编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读