|
|
[root@centos6 conf]# /usr/local/apache/bin/apachectl status7 u; z+ U1 j; i5 K9 g
Looking up localhost
- w, y9 m+ `* a4 uMaking HTTP connection to localhost
5 Z0 T7 l2 m/ c7 YAlert!: Unable to connect to remote host.
- F- G: t6 _" N# F" H0 Alynx: Can't access startfile http://localhost/server-status* U: _' E% k* V4 }# J8 Q
3 X- N0 n1 D4 {4 z* |" [1 X7 ^查看error.log日志 N, Y+ s6 D; V0 `! `. f! P# [( g8 H
[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"
2 Q3 h' {* p/ S1 k' T& `
. ?* S6 |$ T8 N% N. m解决方法:
Z: R" r: A" o1 c5 p0 u1 E& o! Z添加host域名解析:
, Z8 g# o0 p0 p. d8 w/ b: evim /etc/hosts
H- N$ Q6 r5 {1 c127.0.0.1 centos6: l: i' l, O5 u
7 X6 B; w3 [ e# u F) \" z
[root@centos6 conf]# /usr/local/apache/bin/apachectl start
) ]+ w2 q7 u' u% ?[root@centos6 conf]# /usr/local/apache/bin/apachectl status
( S. j4 ~, ^: e9 G8 j. |2 r7 A Not Found
9 y( X8 \) h/ H- J The requested URL /server-status was not found on this server.
/ s! @1 u# q4 }' }
" {9 c% ?# C7 ?5 {
3 ^9 l. Z$ S1 ^. Y' Z/ ] |
|