httpd -t AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::5200:ff:fe01:0%eth0. Set the 'ServerName' directive globally to suppress this message Syntax OK 这告警无所谓,反正就是没有FQDN域名 systemctl disable firewalld --now setenforce 0 systemctl enable httpd --now ss -tunlp | grep 80 tcp LISTEN 0 511 *:80 *:* users:(("httpd",pid=14607,fd=4),("httpd",pid=14606,fd=4),("httpd",pid=14605,fd=4),("httpd",pid=14603,fd=4))
[root@localhost ~]# curl xhy.com This is xhy [root@localhost ~]# curl www.xhy.com This is xhy [root@localhost ~]# curl ws.com && curl www.ws.com This is ws This is ws