首頁 > 後端開發 > php教程 > yum安裝nginx詳解

yum安裝nginx詳解

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-07-29 09:03:15
原創
1519 人瀏覽過

1.查看yum的nginx資訊

# yum info nginx
登入後複製
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirrors.yun-idc.com
Excluding Packages in global exclude list
Finished
Installed Packages
Name       : nginx
Arch       : x86_64
Version    : 0.8.55
Release    : 6.el5
Size       : 984 k
Repo       : installed
Summary    : Robust, small and high performance HTTP and reverse proxy server
URL        : http://nginx.net/
License    : BSD
Description: Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
           : proxy server written by Igor Sysoev.
登入後複製

2.如果需要更換版本,先卸載

# yum remove nginx
登入後複製

3.安裝並啟動nginx

# yum install nginx
# service nginx start
登入後複製

4.瀏覽器訪問


回傳結果如下表示成功

Welcome to nginx on EPEL!
This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.

Website Administrator
This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

[ Powered by nginx ]  [ Powered by Fedora EPEL ]
登入後複製


以上就介紹了yum安裝nginx詳解,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
重啟nginx出錯
來自於 1970-01-01 08:00:00
0
0
0
server - Nginx設定webapp問題
來自於 1970-01-01 08:00:00
0
0
0
centos7 - NGINX出現異常
來自於 1970-01-01 08:00:00
0
0
0
Nginx的default.conf問題
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板