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

    你可能感兴趣的文章
    office之Excel 你会用 Ctrl + E 吗?
    查看>>
    Office办公软件里的“开发工具”选项卡-ChatGPT4o作答
    查看>>
    Office开发工具选项卡中的控件-ChatGPT4o作答
    查看>>
    Offline Installation the .NET Framework 3.5 on Windows 8
    查看>>
    OGC服务标准(地图资料篇.3)
    查看>>
    OGG初始化之使用数据库实用程序加载数据
    查看>>
    ogg参数解析
    查看>>
    ognl详解
    查看>>
    Ogre 插件系统
    查看>>
    Oil Deposits
    查看>>
    oj2894(贝尔曼福特模板)
    查看>>
    OJ4TH|Let's play a game
    查看>>
    OJ中处理超大数据的方法
    查看>>
    OJ中常见的一种presentation error解决方法
    查看>>
    OK335xS UART device registe hacking
    查看>>
    ok6410内存初始化
    查看>>
    OkDeepLink 使用教程
    查看>>
    OKHTTP
    查看>>
    Okhttp3中设置超时的方法
    查看>>
    Okhttp3添加拦截器后,报错,java.io.IOException: unexpected end of stream on okhttp3.Address
    查看>>