nginx部署
- 依賴解決
安裝pcre庫(Perl Compatible Regular Expressions;perl相容正規表示式),為了使nginx支援具備URL重寫功能的Rewrite模組。
# yum -y install pcre pcre-devel
# yum -y install openssl openssl-devel gcc
- 依賴檢查
# rpm -qa pcre pcre-devel
- 服務安裝
# wget http://nginx.org/download/nginx-1.12.1.tar.gz
# tar axvf nginx-1.12.1.tar.gz
# useradd nginx -s /sbin/nologin -M
# cd nginx-1.12.1
# ./configure –help
# ./configure –user=nginx –group=nginx –with-http_ssl_module –with-http_stub_status_module –prefix=/usr/local/nginx-1.12.1/
# make
# make install
- 連結完善
# ln -sv /usr/local/nginx-1.12.1 /usr/local/nginx
- 服務啟動
# /usr/local/nginx/sbin/nginx -t
# /usr/local/nginx/sbin/nginx
- 功能檢測
WINDOS:瀏覽器直接輸入ip,即可出現nginx頁面;
LINUX:# curl -I 127.0.0.1
HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Sun, 03 Sep 2017 12:53:41 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Sun, 03 Sep 2017 12:35:56 GMT
Connection: keep-alive
ETag: “59abf72c-264”
Accept-Ranges: bytes
————————————————————-
轉載請保留此段宣告,且在文章頁面明顯位置給出原文連結,謝謝!
——————————————————————————
如果覺得這篇文章對你有小小的幫助的話,記得在右下角點個“推薦”哦,博主在此感謝!
——————————————————————————
相關文章
- [部署01] NginxNginx
- Ubuntu 部署 NginxUbuntuNginx
- Nginx部署配置Nginx
- nginx下部署showdocNginx
- 【Nginx】Nginx部署前端靜態資源Nginx前端
- 使用nginx部署網站Nginx網站
- nginx部署vue專案NginxVue
- Linux 部署 Nginx 服務LinuxNginx
- nginx 部署vue http、httpsNginxVueHTTP
- ingress-nginx-controller部署NginxController
- Forever +nginx部署Node站點Nginx
- nginx+gunicorn專案部署Nginx
- Nginx 部署靜態頁面Nginx
- nginx 寶塔 環境部署Nginx
- keeplied + nginx +tomcat 高可用部署NginxTomcat
- 部署nginx php注意事項NginxPHP
- Nginx部署前端環境(Mac)Nginx前端Mac
- DaemonSet方式部署nginx-ingressNginx
- vue history路由模式 部署NginxVue路由模式Nginx
- linux伺服器環境部署(三、docker部署nginx)Linux伺服器DockerNginx
- linux伺服器下部署nginxLinux伺服器Nginx
- nginx部署及簡單優化Nginx優化
- nginx部署(13:Permission denied)報錯Nginx
- Flask——Linux+Nginx+Uwsgi+Supervisor 部署FlaskLinuxNginx
- Nginx+Tomcat Https SSL部署方案NginxTomcatHTTP
- uwsgi + nginx 部署python專案(一)NginxPython
- uwsgi + nginx 部署python專案(二)NginxPython
- Nginx+Tomcat部署負載均衡NginxTomcat負載
- Ubuntu16.04 flask + nginx + uWSGI 部署UbuntuFlaskNginx
- Nginx + Keepalived 高可用叢集部署Nginx
- Nginx部署H5專案NginxH5
- Centos系統部署nginx1.18.0CentOSNginx
- Nginx-1.22.0部署方案Nginx
- Nginx部署Vue前端專案,部署多個Vue專案NginxVue前端
- [python][nginx][https] Nginx 伺服器 SSL 證照安裝部署PythonNginxHTTP伺服器
- ror+psql+puma+nginx部署專案SQLNginx
- 【javaWeb】第54天——專案部署(nginx)JavaWebNginx
- NET Core+MySql+Nginx 容器化部署MySqlNginx