zoukankan      html  css  js  c++  java
  • nginx+phpfpm+mysql 高性能环境搭建

    首先下载nginx,pcre,

    首先安装pcre  

    [xxxxx@xxxxx.com]#tar zxvf pcre-7.2.tar.gz
    [xxxxx@xxxxx.com]#cd pcre-7.2/
    [xxxxx@xxxxx.com]#./configure
    [xxxxx@xxxxx.com]#make && make install
    [xxxxx@xxxxx.com]#cd ../

    libtool: line 990: g++: command not found 

    运行 apt-get install build-essential解决

    编译nginx

    ./configure –user=root –group=root –prefix=/home/admin/nginx –with-openssl=/usr/include/openssl –with-pcre=/usr/local/lib –with-http_stub_status_module

    在这里,需要说明一下,由于Nginx的配置文件中我想用到正则,所以需要 pcre 模块的支持。上面安装步骤里我已经安装了 pcre 及 pcre-devel 的rpm包,但是 Ngxin 并不能正确找到 .h/.so/.a/.la 文件,因此我稍微变通了一下:

    [xxxxx@xxxxx.com]#mkdir /usr/include/pcre/.libs/
    [xxxxx@xxxxx.com]#cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.a
    [xxxxx@xxxxx.com]#cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.la
    [xxxxx@xxxxx.com]#cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.a
    [xxxxx@xxxxx.com]#cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.la
    然后,修改 objs/Makefile 大概在908行的位置上,注释掉以下内容:

    ./configure –disable-shared

    接下来,就可以正常执行 make 及 make install 了。

  • 相关阅读:
    pandas 筛选指定行或者列的数据
    数据相关性分析方法
    导入sklearn 报错,找不到相关模块
    特征探索经验
    python 中hive 取日期时间的方法
    云从科技 OCR任务 pixel-anchor 方法
    五种实现左中右自适应布局方法
    vscode vue 代码提示
    js Object.create 初探
    webpack 加载css 相对路径 ~
  • 原文地址:https://www.cnblogs.com/mashuaimama/p/2442686.html
Copyright © 2011-2022 走看看