我写了一个脚本,它执行像supervisord检测进程是否关闭。当一台服务器关闭时,启动它。 有时我发现这个过程正在运行,但脚本认为它已经关闭。 def check_status(service, port):
"""
check_the service status.
args:
service: the name of the service.
我有权限ssh到特定的基于unix的计算机(使用/ proc文件系统)。但是,当我尝试SSH并远程运行netstat -taupen。我没有看到进程的PID。例如 - Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 10.10.27.4