当前位置:网站首页>Minio server deployment, set up and configure compression

Minio server deployment, set up and configure compression

2020-12-08 11:08:52 Jun qianshang 520

1. Server deployment

wget https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod +x minio
#  It will be printed after startup AccessKey and SecretKey Etc 
./minio server /data/minio_oss_srv 
#  Background operation 
nohup ./minio server /data/minio_oss_srv > /data/logs/minio/minio.log 2>&1 &
# to open up 9000 port  
firewall-cmd --zone=public --add-port=9000/tcp --permanent 
firewall-cmd --reload
# Custom port number 
./minio server --address 101.121.115.159:9001 /data/minio_oss_srv

2. Client Deployment

wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help

3. To configure MySQL Release minio event

#mc Configure local minio service 
$ ./mc config host add myminio http://127.0.0.1:9000 yourAccessKey yourSecretKey
$ ./mc admin config get myminio/ notify_mysql
notify_mysql table="" database="" format="namespace" password="" port="" queue_dir="" queue_limit="0"  username="" dsn_string="" host=""
$  ./mc admin config set myminio notify_mysql table="minio_images" format="namespace" queue_limit="0"   dsn_string="user:password@tcp(localhost:3306)/dbname"
# Add notification configuration on the `images` bucket using the MySQL ARN. 
$ ./mc event add myminio/images arn:minio:sqs::_:mysql
# restart minio, The console will print  SQS ARNs: arn:minio:sqs::_:mysql
$ ./mc admin service restart myminio

4. To configure minio Enable compression

# View compression configuration 
$ ./mc admin config get myminio compression
compression extensions=".txt,.log,.csv,.json,.tar,.xml,.bin" mime_types="text/*,application/json,application/xml"
# Enable configuration through environment variables 
export MINIO_COMPRESS="on"
export MINIO_COMPRESS_EXTENSIONS=".pdf,.doc"
export MINIO_COMPRESS_MIME_TYPES="application/pdf"

版权声明
本文为[Jun qianshang 520]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201208110749268w.html