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