在vultr云主机上启动一个LogServer,运行在端口8888,ssh内可以访问8888,一切正常。
但用ip:8888缺没反应,为什么,求大神解答,谢谢啦。
ssh可以访问8888,网页却打不开:
[root@TheUtopia ~]# curl http://45.63.xx.xx:8888 onEnd() Hello World2
回复 (8)
I
要用公网ip吧
T
嗯 是用公网ip的 浏览器输入http://xx.xx.xx.xx:8888没反应:(
T
引用 i5ting要用公网ip吧
@i5ting 编辑了下问题,这样清楚一些:)
K
要设置防火墙吧
T
引用 kotoyuuko要设置防火墙吧
@kotoyuuko 怎么设置,以前用digitalocean直接可以, vultr不知道怎么设置, 求教一下
T
引用 kotoyuuko要设置防火墙吧
@kotoyuuko
[root@TheUtopia LogServer]# firewall-cmd --state bash: firewall-cmd: command not found
没有这个命令,唉
I
引用 thelou1s@kotoyuuko [root@TheUtopia LogServer] firewall cmd state bash: firewall cmd: command not found 没...
@thelou1s 先确定你是什么操作系统,再查防火墙命令
T
引用 i5ting@thelou1s 先确定你是什么操作系统,再查防火墙命令
@i5ting 谢谢,是centos,查到方法了,设置后可以访问:) http://blog.csdn.net/jemlee2002/article/details/7042991
参与回复
登录后即可参与回复。登录