nginx的安装001

     Nginx是一款高性能的HTTP和反向代理服务器,以及邮件代理服务器,由 Igor Sysoev 开发并公开发布于2004年。Nginx以其高并发处理能力、低内存消耗和稳定性著称,特别适合部署在高流量的网站上。

操作系统:

CentOS Stream 9

安装步骤:

[root@localhost ~]# yum -y install nginx
上次元数据过期检查:2:19:53 前,执行于 2024年05月31日 星期五 15时40分11秒。
依赖关系解决。
=============================================================================================================
 软件包                         架构               版本                          仓库                   大小
=============================================================================================================
安装:
 nginx                          x86_64             1:1.20.1-16.el9               appstream              37 k
安装依赖关系:
 centos-logos-httpd             noarch             90.4-1.el9                    appstream             252 k
 nginx-core                     x86_64             1:1.20.1-16.el9               appstream             569 k
 nginx-filesystem               noarch             1:1.20.1-16.el9               appstream             9.3 k

事务概要
=============================================================================================================
安装  4 软件包

总下载:867 k
安装大小:2.2 M
下载软件包:
(1/4): nginx-1.20.1-16.el9.x86_64.rpm                                        631 kB/s |  37 kB     00:00    
(2/4): nginx-filesystem-1.20.1-16.el9.noarch.rpm                             620 kB/s | 9.3 kB     00:00    
(3/4): centos-logos-httpd-90.4-1.el9.noarch.rpm                              2.3 MB/s | 252 kB     00:00    
(4/4): nginx-core-1.20.1-16.el9.x86_64.rpm                                   4.0 MB/s | 569 kB     00:00    
-------------------------------------------------------------------------------------------------------------
总计                                                                         721 kB/s | 867 kB     00:01     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                                                                              1/1 
  运行脚本: nginx-filesystem-1:1.20.1-16.el9.noarch                                                      1/4 
  安装    : nginx-filesystem-1:1.20.1-16.el9.noarch                                                      1/4 
  安装    : nginx-core-1:1.20.1-16.el9.x86_64                                                            2/4 
  安装    : centos-logos-httpd-90.4-1.el9.noarch                                                         3/4 
  安装    : nginx-1:1.20.1-16.el9.x86_64                                                                 4/4 
  运行脚本: nginx-1:1.20.1-16.el9.x86_64                                                                 4/4 
  验证    : centos-logos-httpd-90.4-1.el9.noarch                                                         1/4 
  验证    : nginx-1:1.20.1-16.el9.x86_64                                                                 2/4 
  验证    : nginx-core-1:1.20.1-16.el9.x86_64                                                            3/4 
  验证    : nginx-filesystem-1:1.20.1-16.el9.noarch                                                      4/4 

已安装:
  centos-logos-httpd-90.4-1.el9.noarch     nginx-1:1.20.1-16.el9.x86_64  nginx-core-1:1.20.1-16.el9.x86_64 
  nginx-filesystem-1:1.20.1-16.el9.noarch 

完毕!
[root@localhost ~]# nginx
[root@localhost ~]# ps aux |grep ngix
root        1926  0.0  0.0   6636  2176 pts/0    S+   18:04   0:00 grep --color=auto ngix
[root@localhost ~]# ps aux |grep nginx
root        1920  0.0  0.0  10116  1576 ?        Ss   18:03   0:00 nginx: master process nginx
nginx       1921  0.0  0.1  14388  5032 ?        S    18:03   0:00 nginx: worker process
nginx       1922  0.0  0.1  14388  5032 ?        S    18:03   0:00 nginx: worker process
nginx       1923  0.0  0.1  14388  5032 ?        S    18:03   0:00 nginx: worker process
nginx       1924  0.0  0.1  14388  5032 ?        S    18:03   0:00 nginx: worker process
root        1928  0.0  0.0   6636  2176 pts/0    S+   18:04   0:00 grep --color=auto nginx
[root@localhost ~]# 

测试结果:

  • 12
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值