nginx的安装001

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

操作系统:

CentOS Stream 9

安装步骤:

bash 复制代码
[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 ~]# 

测试结果:

相关推荐
江畔何人初1 小时前
iptables 和 IPVS 代理模式 Service 的区别
linux·运维·服务器·网络·云原生·kubernetes·代理模式
thatway19894 小时前
闲聊-关于AI终结者的警醒
前端
努力的小郑4 小时前
突发!Claude Code 51万行源码全网裸奔:一场史诗级“开源”事故,国内大厂笑麻了
前端·后端·ai编程
2601_949221034 小时前
Splashtop赋能企业级远程办公全场景安全连接成选型优选
运维·人工智能·安全
七度黑光4 小时前
用 openclaw 给故障复盘打分:质量审核自动化实践
运维·服务器·前端·数据库·自动化
HashTang4 小时前
Claude Code 源码中 REPL.tsx 深度解析:一个 5005 行 React 组件的架构启示
前端·后端·ai编程
wendycwb5 小时前
前端城市地址根据最后一级倒推,获取各层级id的方法
前端·vue.js·typescript
终端鹿5 小时前
Vue3 模板引用 (ref):操作 DOM 与子组件实例 从入门到精通
前端·javascript·vue.js
千寻girling5 小时前
不知道 Java 全栈 + AI 编程有没有搞头 ?
前端·人工智能·后端
last demo6 小时前
mysql
运维·数据库·mysql·oracle