Ubuntu - SmartFoxServer - 检查程序是否正在运行

发布于 2024-07-16 07:00:37 字数 286 浏览 5 评论 0原文

我想在我的 Ubuntu 8.10 Intrepid 服务器上运行 SmartFox 服务器,

默认端口是 9339

我无法 telnet localhost 9339,因为它说连接重用

UFW 已关闭,因为状态显示未加载

所以我想:

  1. 检查 SMARTFOX 是否已加载 - 我这样做。 /sfs start 并显示已加载
  2. 检查为什么我无法通过 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:

  1. Check that the SMARTFOX is loaded - i do ./sfs start and it says loaded
  2. Check why I cant access localy via telnet to the 9339 port.

Cheers

Ian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事↓在人 2024-07-23 07:00:37

检查 SmartFoxServer 是否正在运行。 请注意,我从未使用过 SmartFox,所以我不知道您要查找的确切名称,但我假设它会在其中某处包含“smartfox”或“sfs”:

ps -ef | egrep -i "[s]martfox|[s]fs"

如果它正在运行,该命令应该输出有关进程的一些信息。 (正则表达式中的方括号确保该命令不会在进程列表中找到自己)。

现在,检查它是否连接到端口:

lsof -i :9339

如果 SmartFox 正在运行,您应该得到一些以“:9339 (LISTEN)”结尾的输出

因此,现在我们已经检查了进程是否正在运行或正在侦听。 最后要检查的是是否有防火墙阻止其访问。 检查您的防火墙是否已启用,如果已启用,其设置是什么。 我假设您将使用 Ubuntu 的默认防火墙, ufw< /a>:

sudo ufw status

如果防火墙已启用,您应该看到一些设置; 否则,它应该告诉您防火墙未加载。

如果已启用,您可以尝试允许有问题的端口:

sudo ufw allow 9339

编辑:哎呀,我没有注意到您说 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:

ps -ef | egrep -i "[s]martfox|[s]fs"

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:

lsof -i :9339

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:

sudo ufw status

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:

sudo ufw allow 9339

edit: oops, I hadn't noticed that you said that UFW is off. Sorry for assuming you hadn't checked that yet.

奢华的一滴泪 2024-07-23 07:00:37

./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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文