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

    你可能感兴趣的文章
    Python中浮点数的二进制表示(位不是十六进制)
    查看>>
    Python中特殊函数和表达式 filter,map,reduce,lambda
    查看>>
    python中用socket检测端口_Python 用socket模块实现检测端口和检测web服务
    查看>>
    python中用于列表操作的plus和append有什么区别?
    查看>>
    python中用递归求和
    查看>>
    python中的@staticmethod
    查看>>
    python中的array函数作用_NumPy 数组使用大全
    查看>>
    python中的isinstance判断多个对象类型
    查看>>
    python中的keys、values、items
    查看>>
    Python中的lambda和apply结合使用
    查看>>
    python中的map函数
    查看>>
    Python中的numpy模块解析
    查看>>
    Python中的pickle
    查看>>
    Python中的signal模块和Ctrl+C操作
    查看>>
    python中的sort方法
    查看>>
    Python中的threading
    查看>>
    python中的urlencode和urldecode
    查看>>
    python中的with学习
    查看>>
    python中的write和read的用法,有无换行符
    查看>>
    Python中的“真“和“假“
    查看>>