易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3343|回复: 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% Z( j5 b) p2 e1 z7 p8 q$ y
Looking up localhost5 S* x1 W. B; [  c& A6 V
Making HTTP connection to localhost7 V: C) v. V, W* i
Alert!: Unable to connect to remote host.
/ c9 J6 y* |, W( Y& _, M& }  `: z: elynx: Can't access startfile http://localhost/server-status
5 x; N1 x$ T  N# t( |
+ o& V0 L( i" Q7 ?2 D查看error.log日志3 A6 \4 c! V# @2 |$ @/ 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". {1 B  u  v' ^, F) Y

" J; M+ L- Q4 b6 U" T3 |2 ]& W) c解决方法:6 t; Y2 l( k8 K, L5 F7 s& f$ T
添加host域名解析:' {3 U: Y' `0 m( U6 H
vim /etc/hosts, c4 t; e% K: [7 f- h& l6 J
127.0.0.1  centos67 t! S6 Y% i; Q% D8 d5 r7 u

. K" D4 Y; D% ?8 J8 j[root@centos6 conf]# /usr/local/apache/bin/apachectl start
5 {4 s1 ~! ]+ h4 U[root@centos6 conf]# /usr/local/apache/bin/apachectl status, t, j. o3 k0 g6 H) D, j
                                   Not Found( G& v$ ^- o" D. y
   The requested URL /server-status was not found on this server.
% U) U) R, `2 p  C* S6 ]& w) y# ^5 Z- I2 h4 d0 g/ g
, a  B  J& o$ C! F1 D
 楼主| 发表于 2020-6-5 17:43:13 | 显示全部楼层
[root@centos6 conf]# ps -ef |grep httpd
( i' {  Y8 y, @8 r5 nroot      2664     1  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
7 g7 q- b  x' U- @3 L/ M. a- x6 a$ @daemon    2665  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start) L$ t& ]) M4 n6 a( n9 U
daemon    2666  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
% s, k  v, n( K2 h6 _daemon    2667  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
" S, A# G/ S" c3 l  _( V9 _8 mdaemon    2669  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
% [" M6 I# T$ u9 s7 H7 T: Broot      2756  1210  0 17:44 pts/0    00:00:00 grep httpd
# l1 O3 J( ^: A[root@centos6 conf]# lsof -i:800 t$ U3 E3 l" B) _" o- R
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
) P/ w- Q) e) v! ~& Lhttpd   2664   root    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
# S( o! t; w( T$ V  {9 {/ zhttpd   2666 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
4 i9 R, G7 [) @0 a; Y% ]% K$ ihttpd   2667 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)8 y! U( f% R! q4 o8 m
httpd   2669 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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