background
Recently, the company’s service users have surged, and conventional file servers cannot meet the demand, seriously affecting performance. We decided to migrate static files to Alibaba Cloud OSS to solve performance problems and improve user experience. After all, the file server had a lot of historical files before, which needed to be synchronized to OSS, but after a lot of research, the boss used Python scripts, and the experience was very general. Later, I found that the ossutil experience provided by Ali’s official website is still very good.
Download and install
The official website has a very detailed tutorial
1. Switch to the installation directory
cd /data/app
//1、运行以下命令下载ossutil。
wget http://gosspublic.alicdn.com/ossutil/1.7.6/ossutil64
//2、运行以下命令修改文件执行权限。
chmod