#、根据提示配置:oss endpoint、accessKeyID、accessKeySecret信息,其它默认回车即可
ossutil64 config
The command creates a configuration file and stores credentials.
Please enter the config file name,the file name can include path(default /root/.ossutilconfig, carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):
No config file entered, will use the default config file /root/.ossutilconfig
For the following settings, carriage return means skip the configuration. Please try "help config" to see the meaning of the settings
Please enter language(CH/EN, default is:EN, the configuration will go into effect after the command successfully executed):
Please enter endpoint:·`xxxxxxxxxxxxxxxx`
Please enter accessKeyID:`xxxxxxxxxxxx`
Please enter accessKeySecret:`xxxxxxxxxxxx`
Please enter stsToken:
2.5.3、确认配置是否正确,执行以下命令是否能正常返回oss的bucket
sh复制代码
ossutil64 ls oss://test
#、注意://test请替换为对应的bucket
2.6、解压上传的tar包
sh复制代码
tar xvf Anolis7.tar.gz -C /home/anolis7-x86/
tar xvf Anolis8.tar.gz -C /home/anolis8-x86/
2.7、上传包到公开读的oss
sh复制代码
ossutil64 cp -r home/ oss://$(bucket)/mirrors/
2.8、客户端修改环境yum配置
2.8.1、登录到分配的 ECS云主机系统后,执行如下命令:
sh复制代码
cd /etc/
mv /etc/yum.repos.d /etc/yum.repos.d.bak
mkdir /etc/yum.repos.d
cd /etc/yum.repos.d