Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么关闭 #12

Open
CoyDLee opened this issue May 9, 2019 · 1 comment
Open

怎么关闭 #12

CoyDLee opened this issue May 9, 2019 · 1 comment

Comments

@CoyDLee
Copy link

CoyDLee commented May 9, 2019

关闭时,有时端口被占用,建议:有masterstart.py 和 masterstop.py 管理进程

@suokunlong
Copy link

我个人的理解是,如何关闭,完全取决于你是如何启动 master.py 和 slaver.py 的。
如果是从命令行启动的,那么 ctrl-C 退出即可。
如果是使用自制的 systemd 脚本启动的,那么 systemctl stop 那个服务即可。

我刚才测试了一下,如果是通过 ssh 远程连接到 master 的服务器上命令行启动了 master.py, 不使用ctrl-c 终止进程,直接强制退出 ssh 链接,此时好像服务器上的 master.py 还在运行,端口转发功能还在正常工作。此时,我结束的方法是在公网服务器上使用 top 命令然后找到 python3 那个进程,然后 kill 掉即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants