centOs 7.2*64 ECS nginx安装教程
生活随笔
收集整理的這篇文章主要介紹了
centOs 7.2*64 ECS nginx安装教程
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?在服務器新建個文件夾放nginx下載包
mkdir ./nginx cd ./nginx?跳轉到nginx文件下載
wget http://nginx.org/download/nginx-1.13.0.tar.gz解壓
tar -xvf ./(nginx的文件名)進到解壓文件,運行
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-pcre安裝
make & make install如果報錯
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/ 啟動 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?
總結
以上是生活随笔為你收集整理的centOs 7.2*64 ECS nginx安装教程的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Tomcat乱码解决
- 下一篇: Spark架构与作业执行流程简介