MinIO
https://min.io/docs/minio/linux/index.html
Setup
references:
下载 MinIO Server
更新权限
/mnt/data 修改为minio文件存放地址
创建环境变量文件
Create an environment variable file at /etc/default/minio. The MinIO Server container can use this file as the source of all environment variables.
The following example provides a starting environment file:
Include any other environment variables as required for your deployment.
Connect Your Browser to the MinIO Server
Open http://<ip>:9000 in a web browser to access the MinIO Console. You can alternatively enter any of the network addresses specified as part of the server command output. For example, Console: http://192.0.2.10:9001 http://127.0.0.1:9001 in the example output indicates two possible addresses to use for connecting to the Console.
While the port 9000 is used for connecting to the API, MinIO automatically redirects browser access to the MinIO Console.
Log in to the Console with the RootUser and RootPass user credentials displayed in the output. These default to minioadmin | minioadmin.
(Optional) Install the MinIO Client
Use mc alias set to create a new alias associated to your local deployment. You can run mc commands against this alias:
The mc alias set takes four arguments:
- The name of the alias
- The hostname or IP address and port of the MinIO server
- The Access Key for a MinIO user
- The Secret Key for a MinIO user
Creat a new bucket
Versioning, Object Locking, Retention 等需要在创建桶时就设置
例如可以设置全局(Governance)保留(Retention)180天后删除的策略