博客
关于我
(17.1-17.2)项目实战:多机lnmp部署
阅读量:398 次
发布时间:2019-03-05

本文共 1422 字,大约阅读时间需要 4 分钟。

Tengine + PHP ????

?? Tengine ? PHP

??????????????????? Tengine ? PHP???????????????????????????????????????????????????????

?????

????????????????? PHP ? Tengine ?????????????

lftp 172.16.8.100:cd source-softget php.tar.xzget tengine.tar.gz

????? yum install ???????????

yum install -y tree

????

?? lnmp.sh ???????????????????????????

#?/usr/bin/env bashsoft_dir=`pwd`source_dir=/path/to/sources#?/usr/bin/env bashtengine_version=tengine-2.2.0.tar.gzphp_version=php-5.6.29.tar.xztengine_prefix=/usr/local/tenginephp_prefix=/usr/local/phpnginx_prefix=/usr/local/nginx#?/usr/bin/env bashcpus=`lscpu | awk '/^CPU\(s\)/ { print $2 }'`

????

???????????????????

  • config_dir/nginx.conf????? Nginx ????
  • config_dir/index.php??????????

?????????????????????????

#?/usr/bin/env bashconfigure() {    cp ${config_dir}/nginx.conf ${nginx_prefix}/conf/nginx.conf    cp ${config_dir}/index.php ${nginx_prefix}/html/index.php    cp ${nginx_prefix}/sbin/nginx /etc/init.d/php-fpm restart}

????

????????????????????????????? PHP-FPM?

cp ${php_prefix}/etc/php-fpm.conf.default ${php_prefix}/etc/php-fpm.confcp php.ini-production /usr/local/php/lib/php.inicp sapi/fpmf/ init.d.php-fpm /etc/rc.d/init.d/php-fpmchmod a+x /etc/rc.d/init.d/php-fpmchkconfig --add php-fpmchkconfig php-fpm onservice php-fpm start

????

?????????????

  • ?????????????????
  • ?????????????????
  • ?????????????????
  • ?????????????? Tengine ? PHP ?????????????????????????????????

    转载地址:http://cjfzz.baihongyu.com/

    你可能感兴趣的文章
    OSG学习:几何对象的绘制(四)——几何体的更新回调:旋转的线
    查看>>
    OSG学习:场景图形管理(一)——视图与相机
    查看>>
    OSG学习:场景图形管理(三)——多视图相机渲染
    查看>>
    OSG学习:场景图形管理(二)——单窗口多相机渲染
    查看>>
    OSG学习:场景图形管理(四)——多视图多窗口渲染
    查看>>
    OSG学习:新建C++/CLI工程并读取模型(C++/CLI)——根据OSG官方示例代码初步理解其方法
    查看>>
    Sql 随机更新一条数据返回更新数据的ID编号
    查看>>
    OSG学习:空间变换节点和开关节点示例
    查看>>
    OSG学习:纹理映射(一)——多重纹理映射
    查看>>
    OSG学习:纹理映射(七)——聚光灯
    查看>>
    OSG学习:纹理映射(三)——立方图纹理映射
    查看>>
    OSG学习:纹理映射(二)——一维/二维/简单立方图纹理映射
    查看>>
    OSG学习:纹理映射(五)——计算纹理坐标
    查看>>
    OSG学习:纹理映射(六)——灯光
    查看>>
    OSG学习:纹理映射(四)——三维纹理映射
    查看>>
    OSG:从源码看Viewer::run() 一
    查看>>
    osi 负载均衡
    查看>>
    OSI七层模型与TCP/IP五层模型(转)
    查看>>
    OSI七层模型与TCP/IP四层与五层模型详解
    查看>>
    OSI七层模型的TCP/IP模型都有哪几层和他们的对应关系?
    查看>>