nginx 文档 常读常新,软件版本 更新也比较快,值得不断追踪;
安装依赖
pcre
正则表达式,比如 location 命令需要;使用 PCRE,而非 PCRE2;
# Nginx loading shared libraries: libpcre.so.1
ln -s /usr/local/lib/libpcre.so.1 /lib64
openssl
openssl 通常都会在 linux 上安装,查看版本:
rpm -qa | grep "openssl-"
安装 nginx
nginx -V
nginx version: nginx/1.10.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module