找回密码
 注册
查看: 3350|回复: 1

Looking up localhost Making HTTP connection to localhost

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2020-6-5 17:40:59 | 显示全部楼层 |阅读模式
[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/ ]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-6-5 17:43:13 | 显示全部楼层
[root@centos6 conf]# ps -ef |grep httpd' \$ q; J9 f# u8 c% @
root      2664     1  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start0 x, R" V" J5 k
daemon    2665  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start- N9 G- w+ f- M& h
daemon    2666  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start9 T- w$ u2 T1 x) B5 \$ z
daemon    2667  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start( y3 M) i( ^# M7 q8 z
daemon    2669  2664  0 17:41 ?        00:00:00 /usr/local/apache/bin/httpd -k start
0 L7 C4 `5 l& F- h& R6 qroot      2756  1210  0 17:44 pts/0    00:00:00 grep httpd
, ?" M- {/ m8 r9 P6 A0 C" A8 t[root@centos6 conf]# lsof -i:80
% ?$ v! \. S' N" Y$ ECOMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
1 }/ I4 V+ F0 t# Ohttpd   2664   root    4u  IPv6  69457      0t0  TCP *:http (LISTEN)* a# u, S; g' ~6 }" x4 c8 Q% J) I# ^
httpd   2666 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)0 t% d4 v9 Y  V
httpd   2667 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
; T' S5 S  A  U- n6 U) a6 B. |8 yhttpd   2669 daemon    4u  IPv6  69457      0t0  TCP *:http (LISTEN)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:34 , Processed in 0.023027 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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