Detailed explanation of yum installation nginx

WBOY
Release: 2016-07-29 09:03:15
Original
1460 people have browsed it

1. Check the nginx information of yum

# yum info nginx
Copy after login
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.
Copy after login

2. If you need to change the version, uninstall first

# yum remove nginx
Copy after login

3. Install and start nginx

# yum install nginx # service nginx start
Copy after login

4. Browser access

http://192.168.0.168/

The return result is as follows to indicate success

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 ]
Copy after login

The above introduces the detailed explanation of yum installation of nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!