cxs7225032 发表于 2018-5-13 12:31:31

redhat 添加httpd服务的方法2010

redhat 添加httpd服务的方法

  cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd 增加httpd服务
vi /etc/rc.d/init.d/httpd

在第2行加入

# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
       1、添加httpd服务:
  # chkconfig --add httpd
  2、查看httpd服务:
      # chkconfig --list|grep httpd
  httpd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
  3、开机时自动运行httpd服务:
  # chkconfig --level 345 httpd on
  4、查看httpd服务状态:
  # chkconfig --list|grep httpd
  httpd 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭

页: [1]
查看完整版本: redhat 添加httpd服务的方法2010