apache启动时候不报错但是在配置文件中有以下错误
Name or service not known: mod_unique_id: unable to find IPv4 address
这是因为没有在/etc/hosts 文件中设定主机名和ip的对应关系,如果主机名为testserver,则需要在/ect/hosts文件加入127.0.0.1 testserver 这一行。127.0.0.1似乎可以换成机器的ip地址,但是我没有测试过
apache启动时报错
httpd: apr_sockaddr_info_get() failed for
这是因为在配置文件中的ServerName没有设定,将ServerName设定成localhost或者IP