zoukankan      html  css  js  c++  java
  • Nginx安装

    prerequisites

    1. need gcc compiler
        apt-get install install build-essentials
    1. pcre
        apt-get install libpcre3 libpcre3-dev
    1. install zlib library
        apt-get install zlib1g zlib1g-dev
    1. For https (OenSSL)
        apt-get install openssl openssl-dev

    Configure options

    the simple way

        # move to nginx source directory
        > ./configure
        > make
        > make install

    The Module Options

    • Modules enabled by default

      --without-http_charset_module Disables the Charset module for
      --without-http_gzip_module Disables the Gzip compression module.
      --without-http_ssi_module Disables the Server Side Include module.
      --without-http_userid_module Disables the User ID module providing
      user identification via cookies.
      --without-http_access_module Disables the Access module allowing
      access configuration for IP address
      ranges.
      --without-http_auth_basic_module Disables the Basic Authentication module.
      --without-http_autoindex_module Disables the Automatic Index module.
      --without-http_geo_module Disables the Geo module allowing you to
      define variables depending on IP address
      ranges.
      --without-http_map_module Disables the Map module that allows you
      to declare map blocks.
      --without-http_referer_module Disables the Referer control module.
      --without-http_rewrite_module Disables the Rewrite module.
      --without-http_proxy_module Description
      --without-http_fastcgi_module Disables the FastCGI, uWSGI, or SCGI
      modules for interacting with respectively
      FastCGI, uWSGI, or SCGI processes.
      Disables the Proxy module for
      transferring requests to other servers.
      --without-http_uwsgi_module
      --without-http_scgi_module
      --without-http_memcached_module
      Disables the Memcached module for
      interacting with the memcache daemon.
      --without-http_limit_conn_module Disables the Limit Connections module
      for restricting resource usage according to
      defined zones.
      --without-http_limit_req_module Disables the Limit Requests module
      allowing you to limit the amount of
      requests per user.
      --without-http_empty_gif_module Disables the Empty Gif module for
      serving a blank GIF image from memory.
      --without-http_browser_module Disables the Browser module for
      interpreting the User Agent string.
      --without-http_upstream_ip_hash_
      module Disables the Upstream module for
      configuring load-balanced architectures.
      --without-http_upstream_least_
      conn_module
  • 相关阅读:
    根据输入参数,判定时间范围CheckTimeSpan
    C#登出系统并清除Cookie
    MySQL中使用group_concat遇到的坑
    MySQL中group by 与 order by 一起使用排序问题
    使用VMware安装CentOS 7
    VMware安装Linux提示此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态
    Yii2处理密码加密及验证
    Yii2 的安装及简单使用
    git merge的使用
    PHP中上传文件打印错误,错误类型
  • 原文地址:https://www.cnblogs.com/nagi/p/nginx_install.html
Copyright © 2011-2022 走看看