ssh内依次输入执行下面命令
- yum install libevent -y
- wget https://pecl.php.net/get/event-2.3.0.tgz
- tar -zxvf event-2.3.0.tgz
- cd event-2.3.0
- /www/server/php/72/bin/phpize
- ./configure --with-php-config=/www/server/php/72/bin/php-config
- make && make install
- echo "extension=event.so" >> /www/server/php/72/etc/php.ini
- service php-fpm-72 reload
复制代码 |