系统相关
首页 > 系统相关> > centos7安装apach

centos7安装apach

作者:互联网

直接使用yum install httpd进行安装

centos7使用 systemctl start httpd

systemctl stop httpd
systemctl start httpd
systemctl status httpd

查看状态的时候有个报错
报错

[root@iZuf61s2xZ ~]# httpd -t
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using XX. Set the ‘ServerName’ directive globally to suppress this message
Syntax OK

解决办法参考:
https://blog.csdn.net/a13568hki/article/details/103428237

vim /etc/httpd/conf/httpd.conf

#ServerName www.example.com:80
改成
ServerName localhost:80

标签:httpd,ServerName,apach,centos7,systemctl,conf,80,安装
来源: https://blog.csdn.net/xiancaolj/article/details/119062714