博客
关于我
(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/

    你可能感兴趣的文章
    Openlayers中实现地图上打点并显示图标和文字
    查看>>
    Openlayers中实现地图上添加一条红色直线
    查看>>
    Openlayers中将某个feature置于最上层
    查看>>
    Openlayers中点击地图获取坐标并输出
    查看>>
    Openlayers中设置定时绘制和清理直线图层
    查看>>
    OpenLayers使用点要素作为标记
    查看>>
    Openlayers入门教程 --- 万字长篇
    查看>>
    Openlayers各组件默认的css样式
    查看>>
    Openlayers图文版实战,vue项目从0到1做基础配置
    查看>>
    VM16+ubuntu20.04+win10如何固定虚拟机的ip (固定IP)
    查看>>
    OpenLayers学习一:地图加载(以类为接口)
    查看>>
    OpenLayers学习三:地图旋转及地图跳转到某一点的方式(以类为接口)
    查看>>
    OpenLayers学习二:点标记的添加删除和修改(以类为接口)
    查看>>
    Openlayers实战教程学习大纲及引导
    查看>>
    Openlayers实战:drawstart,drawend 绘制交互应用示例
    查看>>
    Openlayers实战:extent介绍及实际应用
    查看>>
    Openlayers实战:LayerGroup添加删除显示隐藏
    查看>>
    Openlayers实战:loadstart和loadend事件
    查看>>
    Openlayers实战:modifystart、modifyend互动示例
    查看>>
    Openlayers实战:moveend事件,利用calculateExtent获取地图左上和右下的坐标
    查看>>