快速配置php7 + swoole + redis

安装lnmp

# wget http://soft.vpser.net/lnmp/lnmp1.4.tar.gz 
# tar zxvf lnmp1.4.tar.gz 
# cd lnmp1.4
# ./install.sh

安装redis拓展

# pecl install igbinary && pecl install redis

swoole安装准备工作

安装http2

# wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2 
# tar -jxvf nghttp2-1.30.0.tar.bz2 
# cd nghttp2-1.30.0 
# ./configure 
# make 
# make install

安装postgresql

# yum install -y postgresql-devel

安装hiredis

# wget https://codeload.github.com/redis/hiredis/tar.gz/v0.13.3
# tar -zxvf v0.13.3 
# cd hiredis-0.13.3/
# make -j
# make install
# ldconfig 

安装swoole

# pecl install swoole

针对thinkphp5框架由于入口文件位于二级目录public中,需要修改fastcgi.conf所限制目录权限

修改 /usr/local/nginx/conf/fastcgi.conf

# fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";  # 注释

安装默认禁用函数scandir, 按照需求修改php.ini文件

 重启php-fpm以及nginx

# service php-fpm reload
# service nginx reload

转载于:https://www.cnblogs.com/lixingbaophp/p/8992725.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值