|
|
[root@centos6 conf]# /usr/local/apache/bin/apachectl status9 O$ c- L8 T/ G
Looking up localhost
( b r* W* O, K- nMaking HTTP connection to localhost
, L! S' q9 {/ `4 F4 a% uAlert!: Unable to connect to remote host.7 Z5 [1 u' l% ?0 A5 Z* q# ]) ]" N0 a+ q
lynx: Can't access startfile http://localhost/server-status
2 y, q3 L1 M! y* h
! G8 p# B$ g' [查看error.log日志
9 @9 Q" o% ~4 D* j# 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"
* @: Q( X, d1 Y6 O0 y( i/ T j; l
解决方法:8 I k+ [: w5 e3 B0 _% t
添加host域名解析:; Q* T1 t+ H! g* z( v
vim /etc/hosts
) i' L& J- q$ k( B1 C7 N. D127.0.0.1 centos63 x1 w+ m) n. m+ I" _
, ]7 G( s7 G3 w
[root@centos6 conf]# /usr/local/apache/bin/apachectl start
. F; b( r3 r3 d# {: P. Y! }[root@centos6 conf]# /usr/local/apache/bin/apachectl status& [( k( v+ m: e7 Z+ m+ |
Not Found
3 p( E/ t( K) [+ @1 {& m The requested URL /server-status was not found on this server.
+ ^% n4 w- f0 D2 z5 U
6 y, _" V, h: _8 V5 k1 E7 }" X2 m2 T+ F! O
|
|