apache与mysql添加进系统服务并设置开机启动apache1 cp /usr/local/apache/bin/apac
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
由此来总结添加方法。
本文出自博客http://xiangji.blog.51cto.com,请务必保留此出处。
--结束END--
本文标题: apache与mysql添加进系统服务并设置开机启动
本文链接: https://www.lsjlt.com/news/51581.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-28
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0