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 是端口,算法