0
當我試圖通過wget下載rpm時,我正在下載我的機器上不完整的軟件包。可能是什麼原因? 這個軟件包大約有300 MB,它只能下載到30-40 MB。 這是我的用戶數據。不下載雲形成模板中的完整軟件包
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"",
[
"#!/bin/bash -v \n",
"growpart /dev/xvdb 1 2> /tmp/growpart.out \n",
"pvcreate /dev/xvdf \n",
"vgcreate var_opt /dev/xvdf \n",
"lvcreate -l 25595 -n var_opscode var_opt \n",
"mkfs.ext4 /dev/var_opt/var_opscode \n",
"echo '/dev/var_opt/var_opscode /var/opt/opscode-analytics ext4 defaults 1 2' >> /etc/fstab \n",
"mkdir –p /var/opt/opscode-analytics \n",
"mount /dev/var_opt/var_opscode /var/opt/opscode-analytics \n",
"chmod 755 /var/opt/opscode-analytics \n",
"reboot \n",
"cd /tmp\n",
"wget -O AnalyticsPackage.rpm ",
{
"Ref": "NexusAnalyticsTar"
},
" \n",
"sleep 100 \n",
"rpm -Uvh AnalyticsPackage.rpm \n",
"sleep 100 \n",
"echo package installed \n",
"\n"
]
]
}
}