1、Install MinIO Server
https://min.io/docs/minio/linux/index.html
Create AK and SK and record information.
AK:ZYYMPcLi6dSPsDfr5QeW
SK:Am3m2qtpkUk2wAgT5dPbpE4hGD2tX7a6RpjsbeEd
And create a bucket named aswtest.
2、Install AWS CLI
Refer to https://aws.amazon.com/cli/
Testing on Rcoky Linux 9.4
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
Check
[root@mydb ~]# aws --version
aws-cli/2.19.1 Python/3.12.6 Linux/5.14.0-427.42.1.el9_4.x86_64 exe/x86_64.rocky.9
3、configuration
Fill in AK and SK, region, region default us-east-1, and press enter after format.
[root@mydb ~]# aws configure
AWS Access Key ID [None]: ZYYMPcLi6dSPsDfr5QeW
AWS Secret Access Key [None]: Am3m2qtpkUk2wAgT5dPbpE4hGD2tX7a6RpjsbeEd
Default region name [None]: us-east-1
Default output format [None]:
Additionally enable AWS Signature Version ‘4’ for MinIO server.
[root@mydb ~]# aws configure set default.s3.signature_version s3v4
4、Common commands and scenarios
1.To list your buckets
[root@mydb ~]# aws --endpoint-url http://192.168.5.130:9000 s3 ls
2024-11-02 21:37:27