› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
wikinee
V2EX  ›  NGINX

[七夕]nginx 的死活连不上

  •  
  •   wikinee · Aug 20, 2015 · 3791 views
    This topic created in 4095 days ago, the information mentioned may be changed or developed.

    同样的软件包( nginx1.8 源码安装),同样的配置文件,我就改了个端口。本地运行嗖嗖的, ssh 到远程主机, http://ip:port 死活看不到成功界面。 ssh 正常,远程主机的python环境听人说被搞坏了,还有再次运行的话,会出现端口已经被占用(这不是说明成功了吗?)

    怎么破?
    python环境不是我搞坏的,而且跟这有没有关系我也不知道。

    ===============================
    单身狗玩个电脑也这么苦逼!

    8 replies  •  2015-08-20 10:35:02 +08:00
    GG668v26Fd55CP5W
    GG668v26Fd55CP5W
    Aug 20, 2015 via iPhone
    1
    检查防火墙,查看端口,查看日志
    tajpure
    tajpure
    Aug 20, 2015
    2
    没看太明白,你这信息给的太乱了.
    LZ 用 lsof -i:80 看一下什么进程监听着 80 端口, 如果不是 nginx 进程, 直接 kill 掉再重启一下 nginx 试试?
    wikinee
    wikinee
    OP
    Aug 20, 2015
    3
    @tajpure 我监听的是 8088 ,确实是nginx
    LeoWA
    LeoWA
    Aug 20, 2015
    4
    防火墙的端口呢?
    ksupertu
    ksupertu
    Aug 20, 2015
    5
    iptables 笑看风轻云淡
    chairuosen
    chairuosen
    Aug 20, 2015
    6
    除了本机 iptables 也有可能是 VPS 厂商的防火墙,比如青云
    ryd994
    ryd994
    Aug 20, 2015 via Android
    7
    先改回去试试看,还有检查防火墙,如果是 centos7 的话检查 SELinux
    liuxu
    liuxu
    Aug 20, 2015
    8
    极大可能性是 iptables 没开端口。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1494 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 23:14 · PVG 07:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.