nginx
what:Nginx是一个高性能的Web服务器和反向代理的软件
how: redhat:
安装:yum
[root@localhost /]# yum install yum-utils
切换目录:
[root@localhost /]# cd /etc/yum.repos.d/
创建文件:
[root@localhost yum.repos.d]# touch nginx.repo
修改文件内容:
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
Nginx的安装:
[root@localhost yum.repos.d]# yum install nginx
ubantu:略
启动
配置文件
反向代理
负载均衡
动静分离
高可用
nginx优化

浙公网安备 33010602011771号