- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@centos6 conf]# /usr/local/apache/bin/apachectl status( ^: y, j. ~: j9 z8 j8 S
Looking up localhost
3 Z! ^6 U1 K3 r. U- ~Making HTTP connection to localhost
* f( z% Y) e) g: c9 Y4 V; |Alert!: Unable to connect to remote host.
3 Q* ~+ ^% d) tlynx: Can't access startfile http://localhost/server-status- Y' ]/ M$ N7 `
) n* g+ X9 P1 J3 X查看error.log日志
6 J) y P2 l. {% m/ e[Fri Jun 05 17:38:02 2020] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "centos6" Y, g. J) f) u7 q: N9 z/ G
/ ~& N0 S: y5 ^5 x( J' D7 M
解决方法:* k% O6 Q; h1 S* s* D3 j8 s
添加host域名解析:$ [6 W, B$ t, ], @+ a
vim /etc/hosts v" p4 J- N) Y- V
127.0.0.1 centos6
; u: {# x( w% D) P( b9 s/ K
$ |8 ]; x' z1 R9 @. I( s[root@centos6 conf]# /usr/local/apache/bin/apachectl start
- T# O. B/ _+ B3 a! J4 N' E[root@centos6 conf]# /usr/local/apache/bin/apachectl status
$ j% K. M* P8 M6 ?5 B9 Y t1 f Not Found
4 }. \& {0 U' @" Z' Q The requested URL /server-status was not found on this server.& z2 a* ~- s, N' q- E
+ t5 U) z+ V* q5 \
6 P- p; F D r% W1 u# A2 W% o: g |
|