zoukankan      html  css  js  c++  java
  • Linux下将Mysql和Apache加入到系统服务

    Apache加入到系统服务里面: 
      cp /安装目录下/apache/bin/apachectl /etc/rc.d/init.d/httpd 
      修改httpd 
      在文件头部加入如下内容: 
      ### 
      # Comments to support chkconfig on RedHat Linux 
      # chkconfig: 2345 90 90 
      # description:http server 
      ### 
      保存 
      在打入 
      #chkconfig --add httpd 
      #chkconfig --level 345 httpd on 
      MySQL加入到系统服务里面 
      cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld 
      #把msql的脚本文件拷到系统的启动目录下 
      cd /etc/init.d/ 
      chkconfig --add mysqld #将mysql加到启动服务列表里 
      chkconfig mysqld on #让系统启动时自动打开mysql服务 
      Apache加入启动项里面: 
      echo '/usr/local/apache2/bin/apachectl start ' >> /etc/rc.local

  • 相关阅读:
    chrome视频播放加速
    centos磁盘空间重新分配
    mseed2sac的安装和使用
    查找台站信息得到台站数据的网站
    java install
    CMT learning
    hosts持续更新
    what is SVD and how to calculate it
    google 镜像
    z变换
  • 原文地址:https://www.cnblogs.com/yangwenxin/p/6651764.html
Copyright © 2011-2022 走看看