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

    你可能感兴趣的文章
    Ploly烛台的定制颜色
    查看>>
    Ploly:如何在Excel中嵌入完全交互的Ploly图形?
    查看>>
    plotloss记录
    查看>>
    Plotly (Python) 子图:填充构面和共享图例
    查看>>
    Plotly 中的行悬停文本
    查看>>
    Plotly 停用 x 轴排序
    查看>>
    Plotly 域变量解释(多图)
    查看>>
    Plotly 绘制表面 3D 未显示
    查看>>
    Plotly-Dash 存在未知问题并创建“加载依赖项时出错“;通过使用 Python-pandas.date_range
    查看>>
    Plotly-Dash:如何过滤具有多个数据框列的仪表板?
    查看>>
    Plotly:如何为 x 轴上的时间序列设置主要刻度线/网格线的值?
    查看>>
    Plotly:如何从 x 轴删除空日期?
    查看>>
    Plotly:如何从单条迹线制作堆积条形图?
    查看>>
    Plotly:如何以 Root 样式绘制直方图,仅显示直方图的轮廓?
    查看>>
    Plotly:如何使用 Plotly Express 组合散点图和线图?
    查看>>
    Plotly:如何使用 plotly.graph_objects 和 plotly.express 定义图形中的颜色?
    查看>>
    Plotly:如何使用 Python 对绘图对象条形图进行颜色编码?
    查看>>
    Plotly:如何使用 updatemenus 更新一个特定的跟踪?
    查看>>
    Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?
    查看>>
    Plotly:如何向烛台图添加交易量
    查看>>