麒麟 离线 没有网络 安装 Nginx

时间:2025-03-31 10:35:10

问题描述

如何给离线麒麟操作系统安装Niginx

解决方案:

1.确认麒麟操作系统版本。
#nkvers
2.配置本地yum
#cd /etc//
#cp kylin_x86_64.repo kylin_x86_64.
#vi kylin_x86_64.repo
[ks10-adv-os]
name = Kylin Linux Advanced Server 10 - Os
baseurl = file:///mnt/cdrom
gpgcheck = 0
enabled = 1
#yum clean all
#yum makecache
#yum repolist
#yum list

3.下载jemalloc安装包。
jemalloc-5.1.0-4.ky10.x86_64.rpm
jemalloc-help-5.1.0-4.ky10.x86_64.rpm
4.下载gd安装包。
gd-2.3.0-4.ky10.x86_64.rpm
5.下载gperftools安装包
gperftools-libs-2.8-1.ky10.x86_64.rpm
6.下载nginx安装包。
nginx-1.16.1-11.p01.ky10.x86_64.rpm
nginx-filesystem-1.16.1-11.p01.
nginx-all-modules-1.16.1-11.p01.
nginx-help-1.16.1-11.p01.
nginx-mod-http-image-filter-1.16.1-11.p01.ky10
nginx-mod-http-perl-1.16.1-11.p01.ky10.x86_64.rpm
nginx-mod-http-xslt-filter-1.16.1-11.p01..
nginx-mod-mail-1.16.1-11.p01.ky10.x86_64.rpm
nginx-mod-stream-1.16.1-11.p01.ky10.x86_64.rpm

7.安装jemalloc包
#rpm -ivh jemalloc-5.1.0-4.ky10.x86_64.rpm
#rpm -ivh jemalloc-help-5.1.0-4.ky10.x86_64.rpm
8.安装gd
#yum install -y gd-2.3.0-4.ky10.x86_64.rpm
9.安装gperftools
#rpm -ivh gperftools-libs-2.8-1.ky10.x86_64.rpm
10.安装nginx
#yum install nginx* -y
11.开机自启动。
#systemctl enabl nginx
12.启动。
#systemctl start nginx
13.查看状态。
#systemctl status nginx

下载地址:https://update./NS/V10

CUnit-2.1.3-22.ky10.x86_64.rpm 20-Dec-2022 06:37 49K
CUnit-devel-2.1.3-22.ky10.x86_64.rpm 20-Dec-2022 06:36 54K
CUnit-help-2.1.3-22. 20-Dec-2022 06:42 16K
CreateImage-0.0.5-31. 20-Dec-2022 06:41 25K
GConf2-3.2.6-25.ky10.x86_64.rpm 20-Dec-2022 06:41 991K
GConf2-devel-3.2.6-25.ky10.x86_64.rpm 20-Dec-2022 06:43 96K
GeoIP-1.6.12-5.ky10.x86_64.rpm 20-Dec-2022 06:40 107K
GeoIP-GeoLite-data-2018.06-3. 20-Dec-2022 06:41 26M
GeoIP-devel-1.6.12-5.ky10.x86_64.rpm 20-Dec-2022 06:42 12K
GeoIP-help-1.6.12-5. 20-Dec-2022 06:41 8940
GraphicsMagick-1.3.30-10.ky10.x86_64.rpm 20-Dec-2022 06:36 1M
GraphicsMagick-c+±1.3.30-10.ky10.x86_64.rpm 20-Dec-2022 06:38 110K
GraphicsMagick-c+±devel-1.3.30-10.ky10.x86_64.rpm 20-Dec-2022 06:37 52K
GraphicsMagick-devel-1.3.30-10.ky10.x86_64.rpm 20-Dec-2022 06:40 74K
GraphicsMagick-help-1.3.30-10. 20-Dec-2022 06:42 1M
GraphicsMagick-perl-1.3.30-10.ky10.x86_64.rpm 20-Dec-2022 06:38 167K
HdrHistogram-2.1.11-1. 20-Dec-2022 06:36 130K
HdrHistogram-javadoc-2.1.11-1. 20-Dec-2022 06:38 107K
HikariCP-2.4.3-7. 20-Dec-2022 06:38 142K
HikariCP-help-2.4.3-7. 20-Dec-2022 06:36 92K
ImageMagick-6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:39 2M
ImageMagick-c+±6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:39 155K
ImageMagick-c+±devel-6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:41 90K
ImageMagick-devel-6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:39 93K
ImageMagick-help-6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:41 5M
ImageMagick-perl-6.9.12.43-1.ky10.x86_64.rpm 20-Dec-2022 06:40 137K
Judy-1.0.5-19.ky10.x86_64.rpm 20-Dec-2022 06:39 114K
Judy-devel-1.0.5-19.ky10.x86_64.rpm 20-Dec-2022 06:42 53K
Judy-help-1.0.5-19.ky10.x86_64.rpm 20-Dec-2022 06:40 52K
LibRaw-0.20.2-3.ky10.x86_64.rpm 20-Dec-2022 06:39 360K
LibRaw-devel-0.20.2-3.ky10.x86_64.rpm 20-Dec-2022 06:40 493K
ModemManager-1.14.0-2.ky10.x86_64.rpm 20-Dec-2022 06:40 858K
ModemManager-devel-1.14.0-2.ky10.x86_64.rpm 20-Dec-2022 06:41 31K
ModemManager-glib-1.14.0-2.ky10.x86_64.rpm 20-Dec-2022 06:37 240K
ModemManager-glib-devel-1.14.0-2.ky10.x86_64.rpm 20-Dec-2022 06:41 402K
ModemManager-help-1.14.0-2. 20-Dec-2022 06:41 1M
ModemManager-vala-1.14.0-2.ky10.x86_64.rpm 20-Dec-2022 06:42 27K
NetworkManager-1.26.2-12.ky10.x86_64.rpm 20-Dec-2022 06:42 2M
NetworkManager-config-server-1.26.2-12.…> 20-Dec-2022 06:37 9728
NetworkManager-help-1.26.2-12. 20-Dec-2022 06:40 821K
NetworkManager-libnm-1.26.2-12.ky10.x86_64.rpm 20-Dec-2022 06:39 2M
NetworkManager-libnm-devel-1.26.2-12.ky10.x86_6…> 20-Dec-2022 06:40 375K