学习php网络编程,参考 workerman 练习之作
php >= 5.4
Pcntl extension
Event extension
POSIX extension
composer update
// 编辑boot.php
// 设置客户端连接信息(默认加密方式为aes-256-cfb)
$client_config = [
['port' => 50005, 'password' => '123'],
['port' => 60005, 'password' => '123']
];
php boot.php start
php boot.php stop