Ubuntu - SmartFoxServer - 检查程序是否正在运行
我想在我的 Ubuntu 8.10 Intrepid 服务器上运行 SmartFox 服务器,
默认端口是 9339
我无法 telnet localhost 9339,因为它说连接重用
UFW 已关闭,因为状态显示未加载
所以我想:
- 检查 SMARTFOX 是否已加载 - 我这样做。 /sfs start 并显示已加载
- 检查为什么我无法通过 telnet 访问本地 9339 端口。
干杯
伊恩
I am wanting to run SmartFox Server on my Ubuntu 8.10 Intrepid server
default port is 9339
I cant telnet localhost 9339 as it says connection reused
UFW is off as status shows not loaded
So I want to:
- Check that the SMARTFOX is loaded - i do ./sfs start and it says loaded
- Check why I cant access localy via telnet to the 9339 port.
Cheers
Ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查 SmartFoxServer 是否正在运行。 请注意,我从未使用过 SmartFox,所以我不知道您要查找的确切名称,但我假设它会在其中某处包含“smartfox”或“sfs”:
如果它正在运行,该命令应该输出有关进程的一些信息。 (正则表达式中的方括号确保该命令不会在进程列表中找到自己)。
现在,检查它是否连接到端口:
如果 SmartFox 正在运行,您应该得到一些以“:9339 (LISTEN)”结尾的输出
因此,现在我们已经检查了进程是否正在运行或正在侦听。 最后要检查的是是否有防火墙阻止其访问。 检查您的防火墙是否已启用,如果已启用,其设置是什么。 我假设您将使用 Ubuntu 的默认防火墙,
ufw
< /a>:如果防火墙已启用,您应该看到一些设置; 否则,它应该告诉您防火墙未加载。
如果已启用,您可以尝试允许有问题的端口:
编辑:哎呀,我没有注意到您说 UFW 已关闭。 很抱歉假设您还没有检查过。
Check to see if SmartFoxServer is running. Note that I have never used SmartFox, so I don't know the exact name that you'll be looking for, but I'm assuming that it will have "smartfox" or "sfs" somewhere in it:
If it is running, that command should output some information on the process. (The square brackets in the regular expression make sure that this command does not find itself in the process listing).
Now, check to see if it's attached to a port:
If SmartFox is running, you should get some output that ends with ":9339 (LISTEN)"
So, now we've checked if the process is running or listening. The last thing to check is if there is a firewall that is blocking it from being accessed. Check to see if your firewall is enabled, and if so, what its settings are. I'm assuming that you would be using the default firewall for Ubuntu,
ufw
:If the firewall is enabled, you should see some settings; otherwise, it should tell you that the firewall is not loaded.
If it is enabled, you can try allowing the port in question:
edit: oops, I hadn't noticed that you said that UFW is off. Sorry for assuming you hadn't checked that yet.
./sfs status 将指示 sfs 是否正在运行。 另外,检查日志目录中的wrapper_MMDDYY.log。
您也可以 ./sfs 控制台。
./sfs status will indicate whether sfs is running. Also, check wrapper_MMDDYY.log in logs directory.
You could also ./sfs console.