在一台新的国内机上部署amh,256内存
选择国内节点下载,到下载php-generic-7.4这一步失败了(机器隔绝了所有国外ip的连接)
请教下,怎么办……
export CV=[CN] && wget http://dl.amh.sh/amh.sh && bash amh.sh
[download php-generic-7.4]
=============================================================
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
Warning: Problem : timeout. Will retry in 1 seconds. 5 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
Warning: Problem : timeout. Will retry in 2 seconds. 4 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
Warning: Problem : timeout. Will retry in 4 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
Warning: Problem : timeout. Will retry in 8 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
Warning: Problem : timeout. Will retry in 16 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Resolving timed out after 5000 milliseconds
[Error] Download Failed: php-generic-7.4.tar.gz ()
=============================================================
[Linux] AMH 7.0
http://amh.sh
[download amh-7.0]
=============================================================
[Error] amh-7.0 is already exist.
[Error] php-generic-7.4 download failed.
==========================================================================
20230819更新新的国内nat机器编译版出错日志:
[Notice] 现在安装AMH-7.0吗?确认安装请输入y回车:y
[Notice] 即将安装AMH ...
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian bullseye InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.74.0-1.3+deb11u7).
bzip2 is already the newest version (1.0.8-5+b1).
cron is already the newest version (3.0pl1-162).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libstdc++-10-dev : Depends: libc6-dev (>= 2.30-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
Start time: Sat Aug 19 18:16:01 CST 2023
groupadd: group 'www' already exists
useradd: user 'www' already exists
--2023-08-19 18:16:01-- http://code3.amh.sh/files/amh-conf-7.0.tar.gz
Resolving code3.amh.sh (code3.amh.sh)... 120.25.120.249
Connecting to code3.amh.sh (code3.amh.sh)|120.25.120.249|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://code-qn.amh.sh/files/amh-conf-7.0.tar.gz?e=1692440226&token=0NF7JAWuDruc9bVDEkNPyU-WcEmBn4QKftrucw_a:1dwSANCCKEFXuzAZsHGwp-AQZEM= [following]
--2023-08-19 18:16:06-- http://code-qn.amh.sh/files/amh-conf-7.0.tar.gz?e=1692440226&token=0NF7JAWuDruc9bVDEkNPyU-WcEmBn4QKftrucw_a:1dwSANCCKEFXuzAZsHGwp-AQZEM=
Resolving code-qn.amh.sh (code-qn.amh.sh)... 163.177.221.145, 163.177.221.146, 163.177.221.142, ...
Connecting to code-qn.amh.sh (code-qn.amh.sh)|163.177.221.145|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5031 (4.9K) [application/x-compressed]
Saving to: 'amh-conf-7.0.tar.gz'
0K .... 100% 2.66M=0.002s
2023-08-19 18:16:11 (2.66 MB/s) - 'amh-conf-7.0.tar.gz' saved [5031/5031]
amh-conf-7.0/
amh-conf-7.0/conf/
amh-conf-7.0/conf/amh-base
amh-conf-7.0/conf/amh.c
amh.sh: line 177: gcc: command not found
chmod: cannot access '/bin/amh': No such file or directory
amh.sh: line 193: amh: command not found
amh.sh: line 194: amh: command not found
amh.sh: line 195: amh: command not found
amh.sh: line 196: amh: command not found
amh.sh: line 197: amh: command not found
[Error] libiconv-1.14 download failed.
[Error] mysql-5.5 download failed.
[Error] nginx-1.20 download failed.
[Error] php-7.4 download failed.
[Error] amh-7.0 download failed.
==========================================================================
抱歉。安装 AMH 失败了,
如有需要帮助安装,请联系我们: https://amh.sh/bbs/forum.htm
==========================================================================
亲,这个是下载模块超时了,没道理啊,如果是国内服务器,dl.amh.sh是会请求到国内节点的。
也看你amh-7.0模块是已经有下载,可以单独测试下载php-generic-7.4看看,
amh download php-generic-7.4
或是服务器测试访问curl -I dl.amh.sh