【发布时间】:2016-10-11 09:34:16
【问题描述】:
我目前在其默认端口上运行 RethinkDB,因为如果我将浏览器指向 localhost:8080,我会看到 RethinkDB 网络界面:
我想关闭 RethinkDB 并使用 --port-offset 参数在另一个端口上重新打开它。但是,到目前为止,我还无法在 Python 中使用 conn.close() 方法将其关闭。
相反,我想通过简单地终止使用该端口的进程来尝试蛮力方法。我试图通过使用netstat 来确定哪个进程,但这并没有带来任何结果:
kurt@kurt-ThinkPad:~$ netstat -a | grep 8080
kurt@kurt-ThinkPad:~$
如何终止 RethinkDB 进程以使端口再次可用?
【问题讨论】:
-
netstat -nlp。最好使用sudo!