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优化

 

posted @ 2023-11-27 22:19  fzy_uni  阅读(15)  评论(0)    收藏  举报