javen73
V2EX  ›  服务器

从 woothost 买了台服务器,开了个 NGINX,但是无法访问

  •  
  •   javen73 · Jul 7, 2018 · 849 views
    This topic created in 2892 days ago, the information mentioned may be changed or developed.

    我确认了一下,在服务器上 curl localhost,可以得到 NGINX 的页面,使用美国的服务器去 curl 显示不能连接到主机,防火墙都关闭了。应该不是 GFW 的原因

    9 replies    2018-07-23 15:09:02 +08:00
    javen73
        1
    javen73  
    OP
       Jul 7, 2018
    ping 都是可以 ping 到的
    MeteorCat
        2
    MeteorCat  
       Jul 7, 2018 via Android   ❤️ 1
    iptables -I INPUT -p tcp --dport 80 -j ACCEPT

    /etc/rc.d/init.d/iptables save

    /etc/rc.d/init.d/iptables restart

    一般本地 curl 访问到,外部访问不到的话可以考虑下是否 80 端口没开
    javen73
        3
    javen73  
    OP
       Jul 7, 2018
    @MeteorCat 谢谢
    daigouspy
        4
    daigouspy  
       Jul 7, 2018 via Android
    这个大坑你竟然跳下去...
    javen73
        5
    javen73  
    OP
       Jul 7, 2018
    @daigouspy 怎么大坑了。。。不过问题确实是我 iptable 忘记开放端口了
    daigouspy
        6
    daigouspy  
       Jul 7, 2018 via Android
    @javen73 woothosting 本身就是大坑。
    testcaoy7
        7
    testcaoy7  
       Jul 8, 2018
    @javen73 对,WootHosting 是大坑
    javen73
        8
    javen73  
    OP
       Jul 8, 2018
    @testcaoy7 哪里坑了……你倒是说一下啊……
    mostkia
        9
    mostkia  
       Jul 23, 2018
    @javen73 超售严重吧,听说是钻石盘。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:40 · PVG 03:40 · LAX 12:40 · JFK 15:40
    ♥ Do have faith in what you're doing.