环境:
[root@localhost php.d]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@localhost php.d]# php -v
PHP 7.2.10 (cli) (built: Sep 15 2018 07:10:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
为php安装event扩展,搜索下:yum search php | grep event
[root@localhost php.d]# yum search php | grep event
php-evenement.noarch : Événement is a very simple event dispatching library for
php-ezc-EventLog.noarch : Allows you to log events or audit trails
php-kdyby-events.noarch : Events for Nette Framework
php-pecl-event.x86_64 : Provides interface to libevent library
php-react-event-loop.noarch : Event loop abstraction layer that libraries can
: use for evented I/O
php-react-http.noarch :