• ADADADADAD

    apache与mysql添加进系统服务并设置开机启动[ mysql数据库 ]

    mysql数据库 时间:2024-12-03 10:27:39

    作者:文/会员上传

    简介:

    apache与mysql添加进系统服务并设置开机启动apache1 cp /usr/local/apache/bin/apachectl /etc/init.d/httpd2 chkconfig --add httpd出现错误service httpd does not suppo

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    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.1chmod 700 /etc/init.d/mysqld

    2 chkconfig --add mysqld

    3 chkconfig mysqld on

    由此来总结添加方法。
    本文出自博客http://xiangji.blog.51cto.com,请务必保留此出处。

    apache与mysql添加进系统服务并设置开机启动.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载