q986 发表于 2018-11-24 14:02:16

Apache 排错

Apache


review httpd use configuration file


# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   dummy-host.example.com (/etc/httpd/conf.d/host.conf:1)
Syntax OK
#


configuration check

# apachectl -t
Syntax OK
#



httpd error


# service httpd restart
Stopping httpd:                                          [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for aa-syslog-01.puppet.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                         [ OK ]


# vim httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
# service httpd restart
Stopping httpd:                                          [ OK ]
Starting httpd:                                          [ OK ]





页: [1]
查看完整版本: Apache 排错