`
linvar
  • 浏览: 254374 次
  • 性别: Icon_minigender_1
  • 来自: 未定
社区版块
存档分类
最新评论

nginx安装使用

阅读更多
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]

...
...
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics