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 ~]# 

测试结果:

相关推荐
RealizeInnerSelf丶2 分钟前
Web 网页如何唤起本地 Windows 应用并传递参数(含 Electron 自动注册 + 手动配置指南)
前端·windows
prettyxian3 分钟前
【linux】进程概念(1)PCB、系统调用与 proc 目录全解析
linux·运维·服务器
IT_陈寒10 分钟前
Redis 性能优化实战:5个被低估的配置项让我节省了40%内存成本
前端·人工智能·后端
chilavert31811 分钟前
技术演进中的开发沉思-261 Ajax:动画优化
前端·javascript·ajax
乾元11 分钟前
用 AI 做联动:当应用层出现问题,网络如何被“自动拉入决策回路”
运维·开发语言·网络·人工智能·ci/cd·自动化
尘心cx14 分钟前
前端-APIs-day3
开发语言·前端·javascript
youxiao_9016 分钟前
Docker 容器(一)
运维·docker·容器
小尧嵌入式24 分钟前
Linux进程线程与进程间通信
linux·运维·服务器·c语言·开发语言·数据结构·microsoft
烂不烂问厨房28 分钟前
前端自适应布局之等比例缩放
开发语言·前端·javascript
Arvin62733 分钟前
docker /var/lib/docker/overlay2磁盘满的处理方法
运维·docker·容器