1.nginx的安装
依赖包:(需要源码, 而不是编译后的)
pcre(perl-compatible regular expression) lib
openSSL,md5,shal,zlib
./configure --help有许多选项可以选择,多半又要有点经验或使用默认项
--prefix=/opt/nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
--with-openssl=../openssl
--with-md5=../md5
--with-pcre=../pcre
...
make;make install
2.nginx运行
#/path/to/nginx [-t,-c,-v,-V]
...
...
依赖包:(需要源码, 而不是编译后的)
pcre(perl-compatible regular expression) lib
openSSL,md5,shal,zlib
./configure --help有许多选项可以选择,多半又要有点经验或使用默认项
--prefix=/opt/nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
--with-openssl=../openssl
--with-md5=../md5
--with-pcre=../pcre
...
make;make install
2.nginx运行
#/path/to/nginx [-t,-c,-v,-V]
...
...
本文详细介绍Nginx的安装过程及配置方法,包括必要的依赖包如pcre、libopenSSL等,并提供了具体的编译参数说明.同时介绍了Nginx的启动方式.
6056

被折叠的 条评论
为什么被折叠?



