自学内容网 自学内容网

PHP swoole安装

下载swoole扩展

wget https://github.com/swoole/swoole-src/archive/refs/tags/v4.8.12.tar.gz

# tar -xzf swoole-4.8.12.tgz
# cd swoole-4.8.12/
# ./clear.sh
# swoole的目录下执行以下命令,将扩展编译到php的扩展中
# phpize
# ./configure --with-php-config=/usr/local/php8.1/bin/php-config 
# make && make install

安装ext_async

wget https://github.com/swoole/ext-async/archive/refs/tags/v4.8.12.tar.gz
tar -xzvf v4.4.13.tar.gz
cd ext-async-4.4.13
phpize
./configure --with-php-config=/usr/local/php8.1/bin/php-config
make -j 4
make install

netstat -anp | grep 8080
firewall-cmd --zone=public --add-port=9500/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all

Redis 安装

wget http://download.redis.io/releases/redis-7.0.9.tar.gz
tar xzvf redis-7.0.9.tar.gz
cd redis-7.0.9
# make && make install

wget https://github.com/phpredis/phpredis/archive/develop.zip --no-check-certificate
unzip develop.zip && cd phpredis-develop
phpize
./configure -with-php-config=/usr/local/php8.1/bin/php-config
make && make install

nohup redis-server /etc/redis.conf &

原文地址:https://blog.csdn.net/a_jie_2016_05/article/details/144320409

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!