zoukankan      html  css  js  c++  java
  • Nginx简易编译安装

    1、下载Nginx:

    http://nginx.org/download/nginx-1.6.3.tar.gz
    

      

    2、安装Pcre、Zlib、Openssl等相关组件:

    [root@track nginx-1.6.3]# yum -y install pcre* zlib* openssl*
    [root@track nginx-1.6.3]#./configure --prefix=/usr/local/nginx --with-http_ssl_module
    
    -------------------------------------------------------------	
    Configuration summary
    + using system PCRE library
    + using system OpenSSL library
    + md5: using OpenSSL library
    + sha1: using OpenSSL library
    + using system zlib library
    
    -------------------------------------------------------------- 
    nginx path prefix: "/usr/local/nginx"
    nginx binary file: "/usr/local/nginx/sbin/nginx"
    nginx configuration prefix: "/usr/local/nginx/conf"
    nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
    nginx pid file: "/usr/local/nginx/logs/nginx.pid"
    nginx error log file: "/usr/local/nginx/logs/error.log"
    nginx http access log file: "/usr/local/nginx/logs/access.log"
    nginx http client request body temporary files: "client_body_temp"
    nginx http proxy temporary files: "proxy_temp"
    nginx http fastcgi temporary files: "fastcgi_temp"
    nginx http uwsgi temporary files: "uwsgi_temp"
    nginx http scgi temporary files: "scgi_temp"
    

    3、如果不安装相关组件的话,会报如下错误:

    [root@track nginx-1.6.3]#./configure --prefix=/usr/local/nginx 
    
    ------------------------------------------------------
    ./configure: error: the HTTP rewrite module requires the PCRE library.
    You can either disable the module by using --without-http_rewrite_module
    
    ./configure: error: the HTTP gzip module requires the zlib library.
    You can either disable the module by using --without-http_gzip_module
    
    --------------------------------------------------------
    Configuration summary
    + PCRE library is not used
    + OpenSSL library is not used
    + using builtin md5 code
    + sha1 library is not found
    + zlib library is not used
    

      

    [THE END]

  • 相关阅读:
    TranslateAnimation类:位置变化动画类
    android 启动第三方程序的代码(利用ComponentName)
    android背景选择器总结
    Spinner控件怎样在subActivity中使用
    Android 自定义 spinner (背景、字体颜色)
    AndroidWebView
    android gravity属性和weight属性
    android得到控件在屏幕中的位置
    解决android自定义标题充满的问题
    android中ListView的常用样式和属性
  • 原文地址:https://www.cnblogs.com/configure/p/5358940.html
Copyright © 2011-2022 走看看