我可以运行twisted的多个实例吗?

2024-10-01 00:29:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我想知道我是否可以在同一个系统上运行多个“twistd”进程实例(我不是问一个twistd实例运行,然后实现多个服务器作为this问题)。你知道吗

我问这个问题的原因是我在服务器上运行两个独立的程序,它们都基于twistd,我对它们的代码一无所知。从服务器上的进程来看,我们有两个twistd进程在运行:

daemon    1101  0.0  0.4 852756 20828 ?        Sl   Sep06   0:58 /usr/bin/python /usr/bin/twistd --uid=1 --gid=1 --logfile=/var/log/twistd.log --pidfile=/var/run/twistd.pid -y /home/myuser/twisted/python/start-it.tac
user2    1132  0.0  2.5 165152 108404 ?       S    Sep06   0:45 /home/user2/user2-env/bin/python /home/user2/user2-env/bin/twistd --umask 0022 --pidfile var/run/user2.pid --logger user2.python.logfile.logger user2

我不确定运行这两个进程是否会相互中断并产生任何问题?你知道吗


Tags: 实例run服务器loghomebin进程var