? ? ?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 knginx-core x86_64 1:1.20.1-16.el9 appstream 569 knginx-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 ~]#
測試結果: