Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using builtin md5 code
+ sha1 library is not found
+ using system zlib library
[iyunv@localhost nginx-1.5.8]# make
[iyunv@localhost nginx-1.5.8]# make install
4.查看是否安装成功
[iyunv@localhost sbin]# ./nginx -t
nginx: the configuration file /usr/local/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/conf/nginx.conf test is successful
有时会报错:
[iyunv@localhost sbin]# ./nginx -t
./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
这样的话查看一下详细信息:
[iyunv@localhost sbin]# ./nginx -t
nginx: the configuration file /usr/local/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/conf/nginx.conf test is successful
[iyunv@localhost sbin]#
启动并访问浏览器http://172.20.70.251:
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.