church / monitor
push server status and connections to udp server.
1.0
2021-11-17 03:09 UTC
This package is auto-updated.
Last update: 2025-03-17 10:10:27 UTC
README
安装
composer require church/monitor
配置
在config/process.php
中加入以下配置。
<?php use Church\Monitor\UDPWorker; return [ //... 'status-monitor' => [ 'enable' => true, 'handler' => UDPWorker::class, 'constructor' => [ 'host' => '127.0.0.1', 'port' => 3000, 'interval' => 10, 'site' => 'test.com', ] ] ]
启动
php bin/start start