如何启动 rpyc 服务器?
How to start an rpyc server?
我最近在我的 Ubuntu 14.04 虚拟机上安装了 rpyc 使用:
pip install rpyc
我找不到可用于启动服务器的文件。我找了很多地方都没有用。
它只是来自命令行的rpyc_classic.py
:
$ rpyc_classic.py
INFO:SLAVE/18812:server started on [0.0.0.0]:18812
然后连接:
from rpyc import classic
c = classic.connect("0.0.0.0",port=18812)
print(c.modules.sys.platform)
linux
您将在 shell 中看到连接:
INFO:SLAVE/18812:accepted 127.0.0.1:58217
INFO:SLAVE/18812:welcome [127.0.0.1]:58217
我最近在我的 Ubuntu 14.04 虚拟机上安装了 rpyc 使用:
pip install rpyc
我找不到可用于启动服务器的文件。我找了很多地方都没有用。
它只是来自命令行的rpyc_classic.py
:
$ rpyc_classic.py
INFO:SLAVE/18812:server started on [0.0.0.0]:18812
然后连接:
from rpyc import classic
c = classic.connect("0.0.0.0",port=18812)
print(c.modules.sys.platform)
linux
您将在 shell 中看到连接:
INFO:SLAVE/18812:accepted 127.0.0.1:58217
INFO:SLAVE/18812:welcome [127.0.0.1]:58217