本帖最后由 u011789405 于 2015-01-24 15:05:23 编辑

解决方案 »

  1.   

    这个看样子好像已经成功了啊。进程都有了。
    你在服务器上wget一下本机IP,看看能不能获取到内容。
      

  2.   

    请问 我这个是正常的么  我局域网一台机子是这样安装的 在另一台机子上访问IP 应该是可以的啊
    貌似也是找的index.html了 我直接另一台机子上访问  http://192.168.1.103/ 提示无法访问
    防火墙我那么看对么  貌似没有80端口的规则
    [root@localhost sbin]# iptables -nL --line-number
    Chain INPUT (policy ACCEPT)
    num  target     prot opt source               destination
    1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
    3    INPUT_direct  all  --  0.0.0.0/0            0.0.0.0/0
    4    INPUT_ZONES_SOURCE  all  --  0.0.0.0/0            0.0.0.0/0
    5    INPUT_ZONES  all  --  0.0.0.0/0            0.0.0.0/0
    6    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
    7    REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibitedChain FORWARD (policy ACCEPT)
    num  target     prot opt source               destination
    1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
    3    FORWARD_direct  all  --  0.0.0.0/0            0.0.0.0/0
    4    FORWARD_IN_ZONES_SOURCE  all  --  0.0.0.0/0            0.0.0.0/0
    5    FORWARD_IN_ZONES  all  --  0.0.0.0/0            0.0.0.0/0
    6    FORWARD_OUT_ZONES_SOURCE  all  --  0.0.0.0/0            0.0.0.0/0          
    7    FORWARD_OUT_ZONES  all  --  0.0.0.0/0            0.0.0.0/0
    8    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
    9    REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibitedChain OUTPUT (policy ACCEPT)
    num  target     prot opt source               destination
    1    OUTPUT_direct  all  --  0.0.0.0/0            0.0.0.0/0Chain FORWARD_IN_ZONES (1 references)
    num  target     prot opt source               destination
    1    FWDI_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]
    2    FWDI_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]Chain FORWARD_IN_ZONES_SOURCE (1 references)
    num  target     prot opt source               destinationChain FORWARD_OUT_ZONES (1 references)
    num  target     prot opt source               destination
    1    FWDO_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]
    2    FWDO_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]Chain FORWARD_OUT_ZONES_SOURCE (1 references)
    num  target     prot opt source               destinationChain FORWARD_direct (1 references)
    num  target     prot opt source               destinationChain FWDI_public (2 references)
    num  target     prot opt source               destination
    1    FWDI_public_log  all  --  0.0.0.0/0            0.0.0.0/0
    2    FWDI_public_deny  all  --  0.0.0.0/0            0.0.0.0/0
    3    FWDI_public_allow  all  --  0.0.0.0/0            0.0.0.0/0Chain FWDI_public_allow (1 references)
    num  target     prot opt source               destinationChain FWDI_public_deny (1 references)
    num  target     prot opt source               destinationChain FWDI_public_log (1 references)
    num  target     prot opt source               destinationChain FWDO_public (2 references)
    num  target     prot opt source               destination
    1    FWDO_public_log  all  --  0.0.0.0/0            0.0.0.0/0
    2    FWDO_public_deny  all  --  0.0.0.0/0            0.0.0.0/0
    3    FWDO_public_allow  all  --  0.0.0.0/0            0.0.0.0/0Chain FWDO_public_allow (1 references)
    num  target     prot opt source               destinationChain FWDO_public_deny (1 references)
    num  target     prot opt source               destinationChain FWDO_public_log (1 references)
    num  target     prot opt source               destinationChain INPUT_ZONES (1 references)
    num  target     prot opt source               destination
    1    IN_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]
    2    IN_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]Chain INPUT_ZONES_SOURCE (1 references)
    num  target     prot opt source               destinationChain INPUT_direct (1 references)
    num  target     prot opt source               destinationChain IN_public (2 references)
    num  target     prot opt source               destination
    1    IN_public_log  all  --  0.0.0.0/0            0.0.0.0/0
    2    IN_public_deny  all  --  0.0.0.0/0            0.0.0.0/0
    3    IN_public_allow  all  --  0.0.0.0/0            0.0.0.0/0Chain IN_public_allow (1 references)
    num  target     prot opt source               destination
    1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22 ctstate NEWChain IN_public_deny (1 references)
    num  target     prot opt source               destinationChain IN_public_log (1 references)
    num  target     prot opt source               destinationChain OUTPUT_direct (1 references)
    num  target     prot opt source               destination
    复制代码[root@localhost /]# wget localhost
    --2015-01-24 17:04:52--  http://localhost/
    正在解析主机 localhost (localhost)... ::1, 127.0.0.1
    正在连接 localhost (localhost)|::1|:80... 失败:拒绝连接。
    正在连接 localhost (localhost)|127.0.0.1|:80... 已连接。
    已发出 HTTP 请求,正在等待回应... 200 OK
    长度:612 [text/html]
    正在保存至: “index.html”100%[======================================>] 612         --.-K/s 用时 0s2015-01-24 17:04:52 (91.0 MB/s) - 已保存 “index.html” [612/612])
    还有这个 nginx 这个是两个进程的? 正常状态么 求大神 你看两眼啊~  搞了好几天 不明白了 ~
    [root@localhost sbin]# lsof -i:80
    COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    nginx   13536   root    6u  IPv4  32434      0t0  TCP *:http (LISTEN)
    nginx   13548 nobody    6u  IPv4  32434      0t0  TCP *:http (LISTEN)
      

  3.   

    如果直接 wget IP 地址 完全没有问题
    [root@localhost /]# wget 192.168.1.103
    --2015-01-24 17:10:40--  http://192.168.1.103/
    正在连接 192.168.1.103:80... 已连接。
    已发出 HTTP 请求,正在等待回应... 200 OK
    长度:612 [text/html]
    正在保存至: “index.html.1”100%[======================================>] 612         --.-K/s 用时 0s2015-01-24 17:10:40 (84.4 MB/s) - 已保存 “index.html.1” [612/612])想得快吐血了  求大神 帮忙看眼啊  为啥我这台机子访问不了额 ~  是防火墙的问题么  我上面那么查法对么~