易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3344|回复: 1
收起左侧

Looking up localhost Making HTTP connection to localhost

[复制链接]
发表于 2020-6-5 17:40:59 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

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
 楼主| 发表于 2020-6-5 17:43:13 | 显示全部楼层
[root@centos6 conf]# ps -ef |grep httpd
5 }+ T& \* P. M7 mroot      2664     1  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
9 I* E& d$ R1 U5 o0 D0 gdaemon    2665  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start0 X/ e7 w/ r4 n4 l
daemon    2666  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
! _. A* E  v+ {% |0 ~8 `1 V: mdaemon    2667  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
6 R( e8 Y' ?2 a1 C. i8 Gdaemon    2669  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
) z0 K1 z8 I* q* troot      2756  1210  0 17:44 pts/0    00:00:00 grep httpd  @# i6 X7 Z" ?5 ]1 e
[root@centos6 conf]# lsof -i:80
( n# G  @  g/ Q9 vCOMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
8 D" x  e, N; w$ dhttpd   2664   root    4u  IPv6  69457      0t0  TCP *:http (LISTEN)9 ]& X6 g$ I  Z- M' g$ N. Z, ~
httpd   2666 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
$ C$ V9 G* b* Jhttpd   2667 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)9 D' d0 j+ M# j% o! S: m& M% a
httpd   2669 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:41 , Processed in 0.051262 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表