首页 > 系统相关 >统信桌面操作系统UOS上安装arm64版nginx

统信桌面操作系统UOS上安装arm64版nginx

时间:2023-10-22 19:01:05浏览次数:61  
标签:UOS 1.14 桌面操作系统 nginx libnginx security 2.1 mod

hello,大家好啊,今天给大家带来一篇在统信桌面操作系统UOS上安装arm64版nginx的文章,本篇文章主要是给大家提供一种下载离线nginx软件包的方法,拿到软件包可以去不能链接互联网又没有仓库环境的电脑上安装,欢迎大家浏览分享,点一个关注可好。

1、下载nginx离线包到本地

pdsyw@pdsyw-PC:~/Desktop$ sudo -i
请输入密码:
验证成功
root@pdsyw-PC:~# apt install -d -y nginx
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libutempter0 squashfs-tools x11-apps x11-session-utils xbitmaps xinit
使用'apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx-common nginx-full
建议安装:
  fcgiwrap nginx-doc
下列【新】软件包将被安装:
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx nginx-common nginx-full
升级了 0 个软件包,新安装了 13 个软件包,要卸载 0 个软件包,有 156 个软件包未被升级。
需要下载 1,721 kB 的归档。
解压缩后会消耗 3,160 kB 的额外空间。
获取:1 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 nginx-common all 1.14.2.1-2+security [121 kB]
获取:2 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-auth-pam arm64 1.14.2.1-2+security [92.8 kB]
获取:3 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-dav-ext arm64 1.14.2.1-2+security [100 kB]
获取:4 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-echo arm64 1.14.2.1-2+security [104 kB]
获取:5 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-geoip arm64 1.14.2.1-2+security [93.9 kB]
获取:6 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-image-filter arm64 1.14.2.1-2+security [97.1 kB]
获取:7 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-subs-filter arm64 1.14.2.1-2+security [95.6 kB]
获取:8 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-upstream-fair arm64 1.14.2.1-2+security [96.1 kB]
获取:9 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-http-xslt-filter arm64 1.14.2.1-2+security [95.8 kB]
获取:10 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-mail arm64 1.14.2.1-2+security [123 kB]
获取:11 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 libnginx-mod-stream arm64 1.14.2.1-2+security [144 kB]
获取:12 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 nginx-full arm64 1.14.2.1-2+security [469 kB]
获取:13 https://professional-packages.chinauos.com/desktop-professional eagle/main arm64 nginx all 1.14.2.1-2+security [88.6 kB]
已下载 1,721 kB,耗时 3秒 (645 kB/s)
于“仅下载”模式中下载完毕
root@pdsyw-PC:~#

统信桌面操作系统UOS上安装arm64版nginx_Desktop

2、查看下载的nginx离线包内容

root@pdsyw-PC:~# cd /var/cache/apt/archives/
root@pdsyw-PC:/var/cache/apt/archives# ls -ltr
总用量 1712
-rw-r--r-- 1 root root  92776 10月 26  2022 libnginx-mod-http-auth-pam_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root 100124 10月 26  2022 libnginx-mod-http-dav-ext_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root 104048 10月 26  2022 libnginx-mod-http-echo_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  93948 10月 26  2022 libnginx-mod-http-geoip_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  97148 10月 26  2022 libnginx-mod-http-image-filter_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  95552 10月 26  2022 libnginx-mod-http-subs-filter_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  96108 10月 26  2022 libnginx-mod-http-upstream-fair_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  95832 10月 26  2022 libnginx-mod-http-xslt-filter_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root 123104 10月 26  2022 libnginx-mod-mail_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root 143920 10月 26  2022 libnginx-mod-stream_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root 120696 10月 26  2022 nginx-common_1.14.2.1-2+security_all.deb
-rw-r--r-- 1 root root 468736 10月 26  2022 nginx-full_1.14.2.1-2+security_arm64.deb
-rw-r--r-- 1 root root  88560 10月 26  2022 nginx_1.14.2.1-2+security_all.deb
-rw-r----- 1 root root      0 10月 13 20:17 lock
drwx------ 2 _apt root   4096 10月 20 15:29 partial
root@pdsyw-PC:/var/cache/apt/archives#

统信桌面操作系统UOS上安装arm64版nginx_Desktop_02

3、打包nginx离线包

root@pdsyw-PC:/var/cache/apt/archives# mkdir nginx
root@pdsyw-PC:/var/cache/apt/archives# cp *.deb nginx
root@pdsyw-PC:/var/cache/apt/archives# tar zcvf nginx.tar.gz nginx
nginx/
nginx/libnginx-mod-http-upstream-fair_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-auth-pam_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-geoip_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-subs-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-mail_1.14.2.1-2+security_arm64.deb
nginx/nginx-full_1.14.2.1-2+security_arm64.deb
nginx/nginx-common_1.14.2.1-2+security_all.deb
nginx/libnginx-mod-http-xslt-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-dav-ext_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-image-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-stream_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-echo_1.14.2.1-2+security_arm64.deb
nginx/nginx_1.14.2.1-2+security_all.deb
root@pdsyw-PC:/var/cache/apt/archives#

统信桌面操作系统UOS上安装arm64版nginx_desktop_03

4、将nginx离线包拷贝到需要安装的系统上解压

root@pdsyw-PC:/var/cache/apt/archives# cp nginx.tar.gz /home/pdsyw/Desktop/
root@pdsyw-PC:/var/cache/apt/archives# chmod 777 /home/pdsyw/Desktop/nginx.tar.gz 
root@pdsyw-PC:/var/cache/apt/archives# cd /home/pdsyw/Desktop/
root@pdsyw-PC:/home/pdsyw/Desktop# tar zxvf nginx.tar.gz 
nginx/
nginx/libnginx-mod-http-upstream-fair_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-auth-pam_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-geoip_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-subs-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-mail_1.14.2.1-2+security_arm64.deb
nginx/nginx-full_1.14.2.1-2+security_arm64.deb
nginx/nginx-common_1.14.2.1-2+security_all.deb
nginx/libnginx-mod-http-xslt-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-dav-ext_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-image-filter_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-stream_1.14.2.1-2+security_arm64.deb
nginx/libnginx-mod-http-echo_1.14.2.1-2+security_arm64.deb
nginx/nginx_1.14.2.1-2+security_all.deb
root@pdsyw-PC:/home/pdsyw/Desktop# chmod 777 nginx -R
root@pdsyw-PC:/home/pdsyw/Desktop#

统信桌面操作系统UOS上安装arm64版nginx_Desktop_04

5、使用dpkg安装

root@pdsyw-PC:/home/pdsyw/Desktop# cd nginx/
root@pdsyw-PC:/home/pdsyw/Desktop/nginx# dpkg -i *.deb
正在选中未选择的软件包 libnginx-mod-http-auth-pam。
(正在读取数据库 ... 系统当前共安装有 198268 个文件和目录。)
准备解压 libnginx-mod-http-auth-pam_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-auth-pam (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-auth-pam_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-dav-ext。
准备解压 libnginx-mod-http-dav-ext_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-dav-ext (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-dav-ext_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-echo。
准备解压 libnginx-mod-http-echo_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-echo (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-echo_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-geoip。
准备解压 libnginx-mod-http-geoip_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-geoip (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-geoip_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-image-filter。
准备解压 libnginx-mod-http-image-filter_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-image-filter (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-image-filter_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-subs-filter。
准备解压 libnginx-mod-http-subs-filter_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-subs-filter (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-subs-filter_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-upstream-fair。
准备解压 libnginx-mod-http-upstream-fair_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-upstream-fair (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-upstream-fair_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-http-xslt-filter。
准备解压 libnginx-mod-http-xslt-filter_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-http-xslt-filter (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-http-xslt-filter_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-mail。
准备解压 libnginx-mod-mail_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-mail (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-mail_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 libnginx-mod-stream。
准备解压 libnginx-mod-stream_1.14.2.1-2+security_arm64.deb  ...
正在解压 libnginx-mod-stream (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/libnginx-mod-stream_1.14.2.1-2+security_arm64.deb
正在选中未选择的软件包 nginx。
准备解压 nginx_1.14.2.1-2+security_all.deb  ...
正在解压 nginx (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/nginx_1.14.2.1-2+security_all.deb
正在选中未选择的软件包 nginx-common。
准备解压 nginx-common_1.14.2.1-2+security_all.deb  ...
正在解压 nginx-common (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/nginx-common_1.14.2.1-2+security_all.deb
正在选中未选择的软件包 nginx-full。
准备解压 nginx-full_1.14.2.1-2+security_arm64.deb  ...
正在解压 nginx-full (1.14.2.1-2+security) ...
/home/pdsyw/Desktop/nginx/nginx-full_1.14.2.1-2+security_arm64.deb
正在设置 nginx-common (1.14.2.1-2+security) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
正在设置 libnginx-mod-http-auth-pam (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-dav-ext (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-echo (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-geoip (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-image-filter (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-subs-filter (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-upstream-fair (1.14.2.1-2+security) ...
正在设置 libnginx-mod-http-xslt-filter (1.14.2.1-2+security) ...
正在设置 libnginx-mod-mail (1.14.2.1-2+security) ...
正在设置 libnginx-mod-stream (1.14.2.1-2+security) ...
正在设置 nginx-full (1.14.2.1-2+security) ...
正在设置 nginx (1.14.2.1-2+security) ...
正在处理用于 systemd (241.52-deepin1) 的触发器 ...
正在处理用于 man-db (2.8.5-2) 的触发器 ...
root@pdsyw-PC:/home/pdsyw/Desktop/nginx#

统信桌面操作系统UOS上安装arm64版nginx_uos_05

6、启动服务,查看nginx状态

root@pdsyw-PC:/home/pdsyw/Desktop/nginx# systemctl enable nginx --now
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
root@pdsyw-PC:/home/pdsyw/Desktop/nginx# systemctl status nginx 
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2023-10-20 15:33:31 CST; 1min 10s ago
     Docs: man:nginx(8)
 Main PID: 7385 (nginx)
    Tasks: 5 (limit: 4915)
   Memory: 5.4M
   CGroup: /system.slice/nginx.service
           ├─7385 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
           ├─7386 nginx: worker process
           ├─7387 nginx: worker process
           ├─7388 nginx: worker process
           └─7389 nginx: worker process

10月 20 15:33:31 pdsyw-PC systemd[1]: Starting A high performance web server and a reverse proxy server...
10月 20 15:33:31 pdsyw-PC systemd[1]: Started A high performance web server and a reverse proxy server.
root@pdsyw-PC:/home/pdsyw/Desktop/nginx#

统信桌面操作系统UOS上安装arm64版nginx_nginx_06

标签:UOS,1.14,桌面操作系统,nginx,libnginx,security,2.1,mod
From: https://blog.51cto.com/pengds/7978266

相关文章

  • 统信系统UOS或者麒麟KYLINOS安装软件有未满足的依赖关系怎么办?
    往期文章:统信UOS或者KYLINOS上无交互安装Citrixhello,大叫好啊,今天给大家介绍在统信UOS或者麒麟KYLINOS上安装软件包时有未满足的依赖关系该怎么处理的文章,欢迎大家关注一下我哦,关于信创的相关内容,会一直给大家分享的哦。1、安装curl软件,报有未能满足的依赖关系pdsyw@pdsyw-PC:~/Des......
  • nginx配置解决跨域访问
    场景:前后的分离项目,前端vue框架,打包后放在Tomcat里访问,端口是8080,后端服务端口8058。访问前端项目时,调用后端接口报跨域。后端环境正常访问端口8058经过nginx配置(文末具体展示)后,去除端口,如下:前端开发环境1.配置开发和生产的环境变量.env.development文件#API服务路径......
  • CentOS 7 安装 Nginx
    CentOS7安装Nginx一、更新存储库包列表$sudoyum-yupdate-y是可选参数。表示安装软件过程中如果提示用户输入y进行确认安装的话,则进行自动确认。二、安装epel软件包问题:什么是epel?回答:epel-release仓库是由Fedora项目创建的,旨在为RHEL和CentOS用户提......
  • NGINX 安装 SSL 证书 - 开启 HTTPS 访问
    在NGINX上安装SSL证书-开启HTTPS访问一、在你开始之前请确保您已下载证书文件。没有证书?请从https://www.sslforfree.com上申请90天免费证书。下载证书后,您应该有一个包含以下证书文件的ZIP:certificate.crtca_bundle.crtprivate.key二、上传证书文件首先,......
  • laravel:部署到nginx服务器(10.27.0)
    一,相关文档:https://learnku.com/docs/laravel/10.x/deployment/14840二,配置nginx1,站点文件server{listen80;#listen[::]:80;server_namedig.lhdtest.com;root/webdata/site/dig/public;add_headerX-Frame-Options"SAMEORIGIN";a......
  • Nginx安装lua模块
    前提已安装完成Nginx安装LuaJITwgethttp://luajit.org/download/LuaJIT-2.0.5.tar.gztar-zxvf LuaJIT-2.0.5.tar.gzcdLuaJIT-2.0.5makeinstallPREFIX=/usr/local/LuaJITecho"exportLUAJIT_LIB=/usr/local/LuaJIT/lib">>/etc/profileecho"expor......
  • Nginx Lua修改返回值
    调试lua脚本ngx.log(ngx.ERR,"xxx")日志会打印到/usr/local/nginx/logs/error.log修改返回值时避免内容被截断增加header_filter_by_lua'ngx.header.content_length=nil';注释后只返回原接口长度3,即ok\n。lua脚本默认必须放在/usr/local/nginx目录下,否则会找不到。mod......
  • 统信UOS安装报probing edd edd=off to disable
    华三服务器,安装uos时提示probingeddedd=offtodisable就卡住了,在grub中加入edd=off也没有效果。最后使用UEFI启动,可以正常进入系统。......
  • nginx首次安装sticky模块-cookie保持会话
    首次安装nginx:(下一篇文章是nginx添加sticky模块)yuminstall-ypcre*openssl*gccgcc-c++make--安装编译环境wgethttps://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/08a395c66e42.zip--下载sticky模块nginx-v--查看Nginx版本,因为要下载和yum安装nginx......
  • nginx添加sticky模块-cookie保持会话
    环境nginx1.8.0 centos6.X sticky:1.2.5 wgethttps://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/master.tar.gzcookie负载均衡相比iphash来比其中一个特点比较明显:内网nat用户的均衡。而iphash无法做到。yuminstallopenssl openssl-devel先停止ngi......