centOs 7.2*64 ECS nginx安装教程
生活随笔
收集整理的這篇文章主要介紹了
centOs 7.2*64 ECS nginx安装教程
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?在服務(wù)器新建個(gè)文件夾放nginx下載包
mkdir ./nginx cd ./nginx?跳轉(zhuǎn)到nginx文件下載
wget http://nginx.org/download/nginx-1.13.0.tar.gz解壓
tar -xvf ./(nginx的文件名)進(jìn)到解壓文件,運(yùn)行
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-pcre安裝
make & make install如果報(bào)錯(cuò)
make: *** No rule to make target `build', needed by `default'. Stop.可以嘗試添加
yum install -y openssl*yum -y install ncurses-devel再重新安裝
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-pcre跳到安裝的路徑
cd /usr/local/nginx/ 啟動(dòng) cd /usr/local/nginx/sbin ./nginx 重啟 cd /usr/local/nginx/sbin ./nginx -s reload 停止 cd /usr/local/nginx/sbin ./nginx -s stop刪除
cd /usr/local/nginx/sbin ./nginx -s delete?
總結(jié)
以上是生活随笔為你收集整理的centOs 7.2*64 ECS nginx安装教程的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Tomcat乱码解决
- 下一篇: Spark架构与作业执行流程简介