我通过 php start.php start -d 这个命令来启动
隔一阵子总会退出,请问如何保证存活?
php start.php start -d
Workerman[start.php] start in DAEMON mode
------------------------------------------------- WORKERMAN --------------------------------------------------
Workerman version:4.1.13 PHP version:8.1.2-1ubuntu2.14 Event-Loop:\Workerman\Events\Select
-------------------------------------------------- WORKERS ---------------------------------------------------
proto user worker listen processes status
tcp root webman http://0.0.0.0:8787 16 [OK]
tcp root monitor none 1 [OK]
--------------------------------------------------------------------------------------------------------------
Input "php start.php stop" to stop. Start success.
发现进程退出时 执行下ps auxf,看下进程在不在。
如果进程不在,按照之前排查经验一般是因为服务器重启导致的,执行top命令能看到系统启动时间