OpenSSL 是一個強大的安全套接字層密碼庫,囊括主要的密碼算法、經常使用的密鑰和證書封裝管理功能及 SSL 協議,並提供豐富的應用程序供測試或其它目的使用.html
nginx 不只支持 http 協議,還支持 https(即在 ssl 協議上傳輸 http),因此須要在 linux安裝 openssl 庫。
yum install -y openssl openssl-devellinux
直接在[root@localhost nginx-1.8.0] 編譯這段代碼:nginx
./configure --prefix=/usr/local/nginx --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --http-client-body-temp-path=/var/temp/nginx/client --http-proxy-temp-path=/var/temp/nginx/proxy --http-fastcgi-temp-path=/var/temp/nginx/fastcgi --http-uwsgi-temp-path=/var/temp/nginx/uwsgi --http-scgi-temp-path=/var/temp/nginx/scgic++
13, 先中止再啓動(建議使用):
對 nginx 進行重啓至關於先中止 nginx 再啓動 nginx, 即先執行中止命令再執行啓動命
令。以下:
./nginx -s quit
./nginx正則表達式
server是一個虛擬機,80 是端口,算法