1. Go to this page and download the library: Download xiongchao/swoole-monitor library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xiongchao / swoole-monitor example snippets
;swoole server config set
[server]
host = 0.0.0.0 ;监听的网络地址
port = 9503 ;监听的端口
process_title=monitor_master ;自定义设置进程名称,可为空 windows&macos下不支持
;swoole执行脚本文件名 位于app/Serve/scripts 目录下
script_path=Swoole.php
[server2]
host = 0.0.0.0
port = 9504
process_title=monitor_master2
script_path=Swoole.php