麒麟操作系统离线安装nginx

  1. 查询并删掉旧包

rpm -qa | grep perl      #查看当前以及安装的perl开头的安装包
rpm -e --nodeps perl-devel-5.28.0-434.ky10.x86_64   #  卸载命令
rpm -e --nodeps perl-libs-5.28.0-434.ky10.x86_64    #  卸载命令
rpm -e --nodeps perl-5.28.0-434.ky10.x86_64         #  卸载命令
  1. 按顺序安装插件离线包

rpm -ivh perl-libs-5.28.3-3.p01.ky10.x86_64.rpm  --nodeps --force 
rpm -ivh perl-devel-5.28.3-3.p01.ky10.x86_64.rpm --nodeps --force
rpm -ivh perl-5.28.3-3.p01.ky10.x86_64.rpm --nodeps --force

3.获取nginx离线安装包

yum -y install --downloadonly --downloaddir=/home/nginx_install nginx  #获取离线安装包

按照顺序安装

rpm -ivh gd-2.2.5-6.ky10.x86_64.rpm  --nodeps --force
rpm -ivh gperftools-libs-2.7-7.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-filesystem-1.16.1-9.p01.ky10.noarch.rpm  --nodeps --force
rpm -ivh nginx-mod-http-image-filter-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-mod-http-perl-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-mod-http-xslt-filter-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-mod-mail-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-all-modules-1.16.1-9.p01.ky10.noarch.rpm  --nodeps --force
rpm -ivh nginx-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force
rpm -ivh nginx-mod-stream-1.16.1-9.p01.ky10.x86_64.rpm  --nodeps --force

4.启动nginx

systemctl start nginx.service    #启动服务

你可能感兴趣的:(nginx,服务器)