apache启动失败:Name or service not known: mod_unique_id: unable to find IPv4 address of "narkii"
2013-12-03 22:20
651 查看
1. 在linux下执行 /usr/local/apache/bin/apachectl start , 毫无反应,再次执行restart发现启动apache失败。
2. 去apache的目录下的logs下查看错误日志,发现以下内容:
[Thu Feb 17 13:58:55 2011] [alert] (EAI 2)Name or service
not known: mod_unique_id: unable to find IPv4 address of "narkii"
Configuration Failed
3. 针对上述错误的解决办法为:
#vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain
localhost
::1 localhost6.localdomain6
localhost6
修改 127.0.0.。。。那行为
127.0.0.1 narkii localhost.localdomain
localhost
即可。
4. 若出现以下错误
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
则只需在 apache下的httpd.conf下的 ServerName localhost:80前的注释去掉就行。
2. 去apache的目录下的logs下查看错误日志,发现以下内容:
[Thu Feb 17 13:58:55 2011] [alert] (EAI 2)Name or service
not known: mod_unique_id: unable to find IPv4 address of "narkii"
Configuration Failed
3. 针对上述错误的解决办法为:
#vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain
localhost
::1 localhost6.localdomain6
localhost6
修改 127.0.0.。。。那行为
127.0.0.1 narkii localhost.localdomain
localhost
即可。
4. 若出现以下错误
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
则只需在 apache下的httpd.conf下的 ServerName localhost:80前的注释去掉就行。
相关文章推荐
- )Name or service not known: mod_unique_id: unable to find IPv4 addr ess of "wb_three_cgi20"
- mod_unique_id: unable to find IPv4 address of "name"
- apache启动失败 Name or service not known: mod_unique_id
- Unable to resolve address ' ' service ' ': Name or service not known
- Unable to resolve address ' ' service ' ': Name or service not known
- Unable to resolve address ' ' service ' ': Name or service not known
- Resolving www.linuxde.net... failed: Name or service not known. wget: unable to resolve host address
- Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
- Github error – fatal: Unable to look up github.com (port 9418) (Name or service not known)
- supervisorctl报错"error: <class 'socket.gaierror'>, [Errno -2] Name or service not known"的解决方法
- 获取Android源码时如何解决【fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)】的问题
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- 【异常】阿里云ECS之yum源"Name or service not known"&安装MySQL
- guard.: ssh: Could not resolve hostname guard.: Name or service not known to: ss
- xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
- xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
- elasticsearch启动问题——Name or service not known
- Linux报错ping: https://www.baidu.com: Name or service not known;centos7 无法启动网络(service network restart
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- This application failed to start because it could not find or load the Qt platform plugin "xcb".