nginx安装配置
安装环境: CentOS Linux release 7.1.1503 (Core)
要添加的CentOS7 Nginx的yum软件库
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
安装工具:yum
yum -y install nginx
查看nginx帮助信息:
# nginx -h
nginx version: nginx/1.6.3 Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives] Options: -?,-h : this help -v : show version and exit -V : show version and configure options then exit -t : test configuration and exit -q : suppress non-error messages during configuration testing -s signal : send signal to a master process: stop, quit, reopen, reload -p prefix : set prefix path (default: /usr/share/nginx/) -c filename : set configuration file (default: /etc/nginx/nginx.conf) -g directives : set global directives out of configuration file
启动nginx服务:
service nginx start
访问测试:地址栏输入安装nginx服务器的ip地址(nginx默认端口是80) 
安装完毕~
nginx可当作反响代理服务器使用,且负载均衡策略效果较好,相对于apache代理服务器配置简便;
配置步骤详细可参见:http://freeloda.blog.51cto.com/2033581/1288553

浙公网安备 33010602011771号