php 扩展
- msgpack扩展
wget https://github.com/msgpack/msgpack-php/archive/msgpack-2.0.3.tar.gz
tar -zxvf msgpack-2.0.3.tar.gz
cd msgpack-php-msgpack-2.0.3/
/www/source/php/bin/phpize
./configure
make && make install
- yar扩展
wget https://pecl.php.net/get/yar-2.0.3.tgz
tar xvf yar-2.0.3.tgz
cd yar-2.0.3/
/www/source/php/bin/phpize
./configure --with-php-config=/www/source/php/bin/php-config --enable-msgpack
make
make install
vim /www/source/php/lib/php.ini
修改
extension=msgpack.so
extension=yar.so
重启
service php-fpm restart
nginx
- 配置文件
cd /etc/nginx
cd conf.d
- 代码目录
cd /usr/share/nginx/html
- 命令
/bin/systemctl restart nginx.service