linux怎样把apahce和mysql添加到开机自动启动

 时间:2026-02-14 16:41:41

1、首先先用putty.exe这个软件链接服务(其他的链接工具也可以)

linux怎样把apahce和mysql添加到开机自动启动

2、linux   用这个命令chkconfig --list查看各项服务的状况:(如图所示) (当然我这个是没有把apache和mysql加进去的)

linux怎样把apahce和mysql添加到开机自动启动

3、下面还是用这个命令‍chkconfig --add  httpd 把apache加入进去

linux怎样把apahce和mysql添加到开机自动启动

4、在设置开机启动时,添加httpd如果遇到提示

service httpd does not support chkconfig

vi /etc/init.d/httpd   编辑这个文件

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

然后在执行chkconfig --add  httpd这个命令就可以啦

mysql和apache同理

最后重新启动一下 ok啦

linux怎样把apahce和mysql添加到开机自动启动

  • linux中设置mysql的开机自动启动
  • linux mysql添加到系统默认启动
  • linux怎么启动mysql
  • linux下怎么启动mysql服务
  • Linux启动mysql报错
  • 热门搜索
    红虫怎么保存 dnf徽章怎么取下来 苏妲己怎么死的 鸡脚怎么做好吃 单肩包怎么背 蛆是怎么来的 怀孕了感冒怎么办 花苞头怎么扎 脚出汗怎么办 怎么保存网页