nignx 平滑升级

# cat nginx_update.sh
  1. ./configure \
  2.     "--user=www" \
  3.     "--group=www" \
  4.     "--add-module=../ngx_cache_purge-1.3" \
  5.     "--add-module=../ngx-fancyindex-0.3"\
  6.     "--prefix=/usr/local/webserver/nginx/" \
  7.     "--with-http_stub_status_module" \
  8.     "--with-http_ssl_module" \
  9.     "--with-http_sub_module" \
  10.     "--with-md5=/usr/lib" \
  11.     "--with-sha1=/usr/lib"
  12. make -j8
  13. mv /usr/local/webserver/nginx/sbin/nginx /usr/local/webserver/nginx/sbin/nginx_`date +%Y%m%d`
  14. cp objs/nginx /usr/local/webserver/nginx/sbin/
  15. make upgrade

你可能感兴趣的:(升级,Nignx,平滑)