我寫了一個腳本,它執行像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