VMware Virtual Machine-linux Cluster build detailed process -4.nginx configuration

Source: Internet
Author: User

Nginx configuration Process

Install a GCC first

GCC:C language,C+ + language ... the compilation Environment

Yum Install GCC

wget: A download tool that automatically downloads resources from the network

Installation of wget(yum install wget) via yum; after installation is complete, you can wget url Download Resources directly

Use the wget tool for software downloads

http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

Yum Install nginx===> installation nginx

after the Nginx installation is complete,

can be viewed by command

Service Nginx status===> view nginx status

Service Nginx stop====> stop nginx

Service Nginx start===> start nginx

Nginx Open State, can be accessed directly through the browser (if you want to turn off the firewall)==>http://ip:80 port can be omitted

The following page will appear when the enhancement is turned on.

Architecture

use of Nginx as a reverse proxy server

Modify the default.conf file under nginx installation directory /ETC/NGINX/CONF.D

edit this configuration file vi default.conf

after the modification is complete, restart the nginx server.

The input port number can range to tomcat, which means the Linux cluster is built.

VMware Virtual Machine-linux Cluster build detailed process -4.nginx configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.