nginx安装
Posted 蘑菇の甜酱
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx安装相关的知识,希望对你有一定的参考价值。
Nginx需要依赖下面3个包
- 1. gzip 模块需要 zlib 库 ( 下载: http://www.zlib.net/ ) zlib-1.2.8.tar.gz
- http://www.zlib.net/
- 2. rewrite 模块需要 pcre 库 ( 下载: http://www.pcre.org/ ) pcre-8.21.tar.gz
- http://www.pcre.org/
- 3. ssl 功能需要 openssl 库 ( 下载: http://www.openssl.org/ ) openssl-1.0.1.tar.gz
- http://www.openssl.org/source/
然后安装nginx
配置成功后:
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using builtin md5 code
+ sha1 library is not found
+ using system zlib library
nginx path prefix: "/opt/modules/nginx"
nginx binary file: "/opt/modules/nginx/sbin/nginx"
nginx modules path: "/opt/modules/nginx/modules"
nginx configuration prefix: "/opt/modules/nginx/conf"
nginx configuration file: "/opt/modules/nginx/conf/nginx.conf"
nginx pid file: "/opt/modules/nginx/logs/nginx.pid"
nginx error log file: "/opt/modules/nginx/logs/error.log"
nginx http access log file: "/opt/modules/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"
编译:
报错:make[1]: Leaving directory `/opt/modules/src/nginx-1.11.0‘
解决办法:好像没事
以上是关于nginx安装的主要内容,如果未能解决你的问题,请参考以下文章