zoukankan      html  css  js  c++  java
  • Tengine1.5.1 CentOS 5.10应用

    Tengine/Nginx
    module library
    gzip zlib
    rewrite pcre
    ssl openssl
    the HTTP XSLT module 

    yum install libxml2-devel

    yum install libxslt-devel

       
       
       
       
       
       
       
       
       
       
       
       
       
       
       

    1. LNMP服务(CentOS 5.10 + Tengine1.5.1 + php5.4.7 + MySql )

     源代码编译安装Tengine1.5.1

    源代码编译安装php5.4.7

    wget http://cn2.php.net/distributions/php-5.4.7.tar.gz
    tar zvxf php-5.4.7.tar.gz
    cd php-5.4.7
    ./configure --prefix=/usr/local/php --enable-fpm --with-curl --enable-sockets --with-mysql --with-mysqli --with-pcre-regex
    #期间可能会有配置错误,一般按照提示,安装相应库的-devel版本即可。可以参考《http://www.zhuoda.org/xiezhi/103050.html》
    make all install
    #配置php-fpm
    cd /usr/local/php/
    cp php-fpm.conf.default php-fpm.conf
    #调整php-fpm.conf中的user和group,使得和系统中已有的user和group相一致。
    问题:

    nginx: [emerg] load module "/usr/local/nginx/modules//ngx_http_fastcgi_module.so" failed (/usr/local/nginx/modules//ngx_http_fastcgi_module.so: cannot restore segment prot after reloc: Permission denied) in /usr/local/nginx/conf/nginx.conf:21

    解决方法:

    chcon -t texrel_shlib_t /usr/local/nginx/modules//ngx_http_fastcgi_module.so 

    问题:

    解决方法:




  • 相关阅读:
    tf.py_func函数总结
    CS231N 常用激活函数
    CS231N 数据预处理(data proprecessing)
    RNN
    plt.subplot与subplot的区别
    Faster-rcnn代码中bbox_inside_weights的作用是什么
    Python基础之python数据结构
    asp.net分割字符串的几种方法
    .net后台获取HTML中select元素选中的值
    JQuery+Ajax制作省市联动
  • 原文地址:https://www.cnblogs.com/harvis/p/3495038.html
Copyright © 2011-2022 走看看