中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Building nginx from Sources

Building nginx from Sources

The build is configured using the configure command.It defines various aspects of the system, including the methods nginxis allowed to use for connection processing.At the end it creates a Makefile.The configure command supports the following parameters:

  • --prefix=path — definesa directory that will keep server files.This same directory will also be used for all relative paths set byconfigure (except for paths to libraries sources)and in the nginx.conf configuration file.It is set to the /usr/local/nginx directory by default.

  • --sbin-path=path — setsthe name of an nginx executable file.This name is used only during installation.By default the file is namedprefix/sbin/nginx.

  • --conf-path=path — setsthe name of an nginx.conf configuration file.If needs be, nginx can always be started with a different configuration file,by specifying it in the command-line parameter-c file.By default the file is namedprefix/conf/nginx.conf.

  • --pid-path=path — setsthe name of an nginx.pid file that will store the process IDof the main process.After installation, the file name can always be changed in thenginx.conf configuration file using thepid directive.By default the file is namedprefix/logs/nginx.pid.

  • --error-log-path=path — setsthe name of the primary error, warnings, and diagnostic file.After installation, the file name can always be changed in thenginx.conf configuration file using theerror_log directive.By default the file is namedprefix/logs/error.log.

  • --http-log-path=path — setsthe name of the primary request log file of the HTTP server.After installation, the file name can always be changed in thenginx.conf configuration file using theaccess_log directive.By default the file is namedprefix/logs/access.log.

  • --build=name — setsan optional nginx build name.

  • --user=name — setsthe name of an unprivileged user whose credentials will be usedby worker processes.After installation, the name can always be changed in thenginx.conf configuration file using theuser directive.The default user name is nobody.

  • --group=name — setsthe name of a group whose credentials will be usedby worker processes.After installation, the name can always be changed in thenginx.conf configuration file using theuser directive.By default, a group name is set to the name of an unprivileged user.

  • --with-select_module
    --without-select_module — enables or disablesbuilding a module that allows the server to work with theselect() method.This module is built automatically if the platform does not appearto support more appropriate methods such as kqueue, epoll, or /dev/poll.

  • --with-poll_module
    --without-poll_module — enables or disablesbuilding a module that allows the server to work with thepoll() method.This module is built automatically if the platform does not appearto support more appropriate methods such as kqueue, epoll, or /dev/poll.

  • --without-http_gzip_module — disables building a modulethat compresses responsesof an HTTP server.The zlib library is required to build and run this module.

  • --without-http_rewrite_module — disables building amodule that allows an HTTP server toredirect requests and change URIof requests.The PCRE library is required to build and run this module.

  • --without-http_proxy_module — disables building anHTTP server proxying module.

  • --with-http_ssl_module — enables building a modulethat adds the HTTPS protocolsupport to an HTTP server.This module is not built by default.The OpenSSL library is required to build and run this module.

  • --with-pcre=path — setsthe path to the sources of the PCRE library.The library distribution (version4.4 — 8.40) needs to be downloaded from thePCRE site and extracted.The rest is done by nginx’s ./configure andmake.The library is required for regular expressions support in thelocation directiveand for thengx_http_rewrite_modulemodule.

  • --with-pcre-jit — builds the PCRE library with“just-in-time compilation” support (1.1.12, thepcre_jit directive).

  • --with-zlib=path — setsthe path to the sources of the zlib library.The library distribution (version1.1.3 — 1.2.11) needs to be downloaded from thezlib site and extracted.The rest is done by nginx’s ./configure andmake.The library is required for thengx_http_gzip_module module.

  • --with-cc-opt=parameters — setsadditional parameters that will be added to the CFLAGS variable.When using the system PCRE library under FreeBSD,--with-cc-opt="-I /usr/local/include"should be specified.If the number of files supported by select() needs to beincreased it can also be specified here such as this:--with-cc-opt="-D FD_SETSIZE=2048".

  • --with-ld-opt=parameters — setsadditional parameters that will be used during linking.When using the system PCRE library under FreeBSD,--with-ld-opt="-L /usr/local/lib"should be specified.

Example of parameters usage (all of this needs to be typed in one line):

./configure    --sbin-path=/usr/local/nginx/nginx    --conf-path=/usr/local/nginx/nginx.conf    --pid-path=/usr/local/nginx/nginx.pid    --with-http_ssl_module    --with-pcre=../pcre-8.40    --with-zlib=../zlib-1.2.11

After configuration,nginx is compiled and installed using make

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
nginx常用10條命令(centos系統(tǒng))
CentOS源碼編譯安裝Nginx
Nginx參考
Nginx安裝
Linux上安裝nginx
nginx在Linux環(huán)境下面的安裝介紹
更多類(lèi)似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服