zoukankan      html  css  js  c++  java
  • 快速配置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
  • 相关阅读:
    致橡树——舒婷
    MPU6050
    Android自动折行TextView Group
    基于LRU Cache的简单缓存
    如果不能给心以翅膀,她如何飞翔
    ubuntu手机识别
    Webkit JNI
    scrapy入门
    Webkit二:RenderTree 创建
    Webkit一:Dom转码和解析
  • 原文地址:https://www.cnblogs.com/lixingbaophp/p/8992725.html
Copyright © 2011-2022 走看看