Home  >  Article  >  PHP Framework  >  Introduction to how workerman installs event extensions

Introduction to how workerman installs event extensions

尚
forward
2020-01-16 17:48:223977browse

Introduction to how workerman installs event extensions

workermanThe socket service created requires event expansion under high concurrency. If the Pagoda panel has been installed, how to install the event extension?

Take the installation of event extension in php7 as an example:

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/70/bin/phpize
./configure --with-php-config=/www/server/php/70/bin/php-config
make && make install
echo "extension=event.so" >> /www/server/php/70/etc/php.ini
service php-fpm-70 reload

Then check whether the installation is successful:

/www/server/php/70/bin/php -m |grep event

For more workerman knowledge, please pay attention to the PHP Chinese websiteworkerman frameworkTutorial column.

The above is the detailed content of Introduction to how workerman installs event extensions. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jincon. If there is any infringement, please contact admin@php.cn delete