原文链接:统信操作系统UOS上安装arm64版nginx
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-geoiplibnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fairlibnginx-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-geoiplibnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fairlibnginx-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:~#
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#
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#
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#
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#
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 serverLoaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)Active: active (running) since Fri 2023-10-20 15:33:31 CST; 1min 10s agoDocs: man:nginx(8)Main PID: 7385 (nginx)Tasks: 5 (limit: 4915)Memory: 5.4MCGroup: /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 process10月 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#