zoukankan      html  css  js  c++  java
  • tenginx编译

         在编译tengine时报错,瞬间迷瞪了!

    错误提示:

    ./configure: error: invalid option "--with-http_rewrite_module"

    结局方案:

    tengine默认已经选择了rewrite_module模块,不需要再次指定即可

    Tengine-(淘宝定制的nginx)

    http://tengine.taobao.org/download.html

    #部分依赖包作用
         zlib        gzip压缩
         openssl     ssl
         pcre        地址重写rewite

    pcre

    http://www.pcre.org/

    https://ftp.pcre.org/pub/pcre/

    zlib

    http://www.zlib.net/

    openssl

    https://www.openssl.org/

    01、未安装pcre

    tar zxf pcre2-10.23.tar.gz   #源码编译

    ./configure

    make && make install

    yum install -y pcre pcre-devel  #yum快速安装

    02、已安装pcre

    --with-http_rewrite_module   ###模块属于默认编译的,故不需要再次添加!

    tengine默认编译的模块

    ./configure

    make

    [root@mvp nginx]# ./sbin/nginx -m
    Tengine version: Tengine/2.2.0 (nginx/1.8.1)
    nginx: loaded modules:
    nginx:     ngx_core_module (static)
    nginx:     ngx_errlog_module (static)
    nginx:     ngx_conf_module (static)
    nginx:     ngx_dso_module (static)
    nginx:     ngx_events_module (static)
    nginx:     ngx_event_core_module (static)
    nginx:     ngx_epoll_module (static)
    nginx:     ngx_procs_module (static)
    nginx:     ngx_proc_core_module (static)
    nginx:     ngx_openssl_module (static)
    nginx:     ngx_regex_module (static)
    nginx:     ngx_http_module (static)
    nginx:     ngx_http_core_module (static)
    nginx:     ngx_http_log_module (static)
    nginx:     ngx_http_upstream_module (static)
    nginx:     ngx_http_static_module (static)
    nginx:     ngx_http_autoindex_module (static)
    nginx:     ngx_http_index_module (static)
    nginx:     ngx_http_auth_request_module (static)
    nginx:     ngx_http_auth_basic_module (static)
    nginx:     ngx_http_access_module (static)
    nginx:     ngx_http_limit_conn_module (static)
    nginx:     ngx_http_limit_req_module (static)
    nginx:     ngx_http_geo_module (static)
    nginx:     ngx_http_map_module (static)
    nginx:     ngx_http_split_clients_module (static)
    nginx:     ngx_http_referer_module (static)
    nginx:     ngx_http_rewrite_module (static)
    nginx:     ngx_http_ssl_module (static)
    nginx:     ngx_http_proxy_module (static)
    nginx:     ngx_http_fastcgi_module (static)
    nginx:     ngx_http_uwsgi_module (static)
    nginx:     ngx_http_scgi_module (static)
    nginx:     ngx_http_memcached_module (static)
    nginx:     ngx_http_empty_gif_module (static)
    nginx:     ngx_http_browser_module (static)
    nginx:     ngx_http_user_agent_module (static)
    nginx:     ngx_http_upstream_hash_module (static)
    nginx:     ngx_http_upstream_ip_hash_module (static)
    nginx:     ngx_http_upstream_consistent_hash_module (static)
    nginx:     ngx_http_upstream_check_module (static)
    nginx:     ngx_http_upstream_least_conn_module (static)
    nginx:     ngx_http_upstream_keepalive_module (static)
    nginx:     ngx_http_upstream_dynamic_module (static)
    nginx:     ngx_http_stub_status_module (static)
    nginx:     ngx_http_write_filter_module (static)
    nginx:     ngx_http_header_filter_module (static)
    nginx:     ngx_http_chunked_filter_module (static)
    nginx:     ngx_http_range_header_filter_module (static)
    nginx:     ngx_http_gzip_filter_module (static)
    nginx:     ngx_http_postpone_filter_module (static)
    nginx:     ngx_http_ssi_filter_module (static)
    nginx:     ngx_http_charset_filter_module (static)
    nginx:     ngx_http_userid_filter_module (static)
    nginx:     ngx_http_footer_filter_module (static)
    nginx:     ngx_http_trim_filter_module (static)
    nginx:     ngx_http_headers_filter_module (static)
    nginx:     ngx_http_upstream_session_sticky_module (static)
    nginx:     ngx_http_reqstat_module (static)
    nginx:     ngx_http_copy_filter_module (static)
    nginx:     ngx_http_range_body_filter_module (static)
    nginx:     ngx_http_not_modified_filter_module (static)

    nginx参数

    [root@VM_0_2_centos sbin]# ./nginx -h

    Tengine version: Tengine/2.1.2 (nginx/1.6.2)

    Usage: nginx [-?hvmVtdq] [-s signal] [-c filename] [-p prefix] [-g directives]

    Options:  

    -?,-h         : this help  

    -v            : show version and exit  

    -m            : show all modules and exit  

    -l            : show all directives and exit  

    -V            : show version, modules and configure options then exit  

    -t            : test configuration and exit   ###测试默认nginx.conf配置文件

    -d            : dump configuration and exit  

    -q            : suppress non-error messages during configuration testing  

    -s signal     : send signal to a master process: stop, quit, reopen, reload###信号控制nginx的状态

    -p prefix     : set prefix path (default: /servyouapp/nginx/)  

    -c filename   : set configuration file (default: conf/nginx.conf)               ###制定非默认配置文件

    -g directives : set global directives out of configuration file

    作者:独木桥
    版权: 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,否则保留追究法律责任的权利!
  • 相关阅读:
    设计模式之单例模式(Singleton)
    ASP.Net WebForm温故知新学习笔记:二、ViewState与UpdatePanel探秘
    ASP.Net WebForm温故知新学习笔记:一、aspx与服务器控件探秘
    [学习笔记] $Maximum$ $Minimum$ $identity$
    BZOJ 2159: Crash 的文明世界(组合数学+第二类斯特林数+树形dp)
    BZOJ 3083: 遥远的国度 (树剖+线段树)
    LUOGU P4560 [IOI2014]Wall 砖墙 (线段树)
    牛客网 NOIP赛前集训营-普及组(第四场)C--部分和 (高维前缀和)
    LUOGU P1501 [国家集训队]Tree II (lct)
    LUOGU P3690 【模板】Link Cut Tree (lct)
  • 原文地址:https://www.cnblogs.com/xiaochina/p/6622287.html
Copyright © 2011-2022 走看看