Heim > Backend-Entwicklung > PHP-Tutorial > yum安装nginx详解

yum安装nginx详解

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-07-29 09:03:15
Original
1545 Leute haben es durchsucht

1.查看yum的nginx信息

# yum info nginx
Nach dem Login kopieren
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.
Nach dem Login kopieren

2.如果需要更换版本,先卸载

# yum remove nginx
Nach dem Login kopieren

3.安装并启动nginx

# yum install nginx
# service nginx start
Nach dem Login kopieren

4.浏览器访问

http://192.168.0.168/

返回结果如下表示成功

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 ]
Nach dem Login kopieren

以上就介绍了yum安装nginx详解,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
Nginx-Lastausgleichsproblem
Aus 1970-01-01 08:00:00
0
0
0
Fehler beim Neustart von Nginx
Aus 1970-01-01 08:00:00
0
0
0
Nginx-Lastausgleich
Aus 1970-01-01 08:00:00
0
0
0
Nginx-Default.conf-Problem
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage