zoukankan      html  css  js  c++  java
  • linux服务器通过设置mysql,apache为系统服务,实现开机启动

    linux服务器通过设置mysql,apache为系统服务,实现开机启动

    mysql设为linux服务

    cp /usr/local/mysql5/share/mysql/mysql.server /etc/init.d/mysqld
    chkconfig --add mysqld
    chkconfig --level 2345 mysqld on
    chown mysql:mysql -R /usr/local/mysql5/
    service mysqld start

    apache设为linux服务

    cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
    vi /etc/init.d/httpd

    在在#!/bin/sh后面加入下面两行
    #chkconfig:345 85 15
    #description: Start and stops the Apache HTTP Server.

    然后
    chmod +x /etc/rc.d/init.d/httpd
    chkconfig --add httpd
  • 相关阅读:
    JS学习之旅2
    JS学习之旅1
    Stack 栈
    Linked List 链表
    Array 数组
    时间/空间复杂度
    What/Why/How
    Https 握手过程
    JS跨域解决方案
    JS 的内存管理-GC
  • 原文地址:https://www.cnblogs.com/eoiioe/p/1323948.html
Copyright © 2011-2022 走看看