地址:http://nginx.org/en/download.html
[root@localhost home]# yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel-----安装依赖 [root@localhost nginx-1.4.7]# mkdir nginx-1.4.7-----在根目录创建文件夹 [root@localhost nginx-1.4.7]# tar -zxvf nginx-1.4.7.tar.gz-----解压 [root@localhost nginx-1.4.7]# ./configure --prefix=/nginx-----编译,prefix指定了安装目录 [root@localhost nginx]# make-----编译 [root@localhost nginx]# make install-----编译安装,安装完成 [root@localhost nginx]# make [root@localhost nginx]# make
地址:http://nginx.org/en/download.html
地址:http://nginx.org/en/download.html
[root@localhost sbin]# ./nginx-----启动服务器
[root@localhost sbin]# ./nginx -g TERM | INT | QUIT-----TERM,INT快速停止,QUIT平缓停止
原文:https://www.cnblogs.com/chunxiaozhang/p/11201426.html