docker环境下安装php event扩展

红甫
2023-12-01

安装libevent库依赖

docker exec -it docker-php /bin/bash 进入php容器内

apt-get install libevent-dev

apt-get install libssl-dev

下载event扩展

wget http://pecl.php.net/get/event-2.3.0.tgz

tar -zxvf event-2.3.0.tgz

mv event-2.3.0 /usr/src/php/ext/event && cd /usr/src/php/ext

docker-php-ext-install event

php -m就可以看到event扩展了

 类似资料: