一·下载上传安装包:
在上面网址找到自己需要的版本进行下载,让后上传到你的服务器上,我这里是nginx-1.13.9
二·安装nginx
2.1 可能出现的报错
你的服务器上要有gcc,不然就会报下面的错,没有就yum -y install gcc 安装一下
./configure: error: C compiler cc is not found
还要有pcre不然会有如下报错,yum -y install pcre-devel安装一下就好
./configure: error: the HTTP rewrite module requires the PCRE library.