Minio is a new open source project released by Anand Babu Periasamy, one of the founders of GlusterFS. Minio is compatible with Amason's S3 distributed object storage project, implemented in Golang, and supported by the client. NET, Java, Python, Javacript, Golang languages. Minio can be used as a cloud storage solution to store massive amounts of images, videos, and documents. Thanks to the Golang implementation, the server can work on Windows, Linux, OS X and FreeBSD. The configuration is simple, basically copying the executable program, and a single line of command can be run.
Documentation:The hyperlink login is visible.
(It is not recommended to check the official Chinese version of the documentation as it is incomplete!) Tip: MinIO is under WindowsDistributed deployment, experimental products only, not recommended, if you stand alone, it's okay!
Download
Download for Windows version:The hyperlink login is visible.
Installation
You can quickly start an instance by using the following command:
At the same time, a .minio.sys folder will be automatically created under the D:\dev_tools\file_attach directory
Browser access:The hyperlink login is visible.The default account and password are: minioadmin
Set up an access account and password
MinIO accounts and passwords are set through environment variables: MINIO_ROOT_USER, MINIO_ROOT_PASSWORD, and some other parameters are also set in the form of environment variables.
I saw on the Internet that it is enough to modify the values in the value after the access_key and secret_key of the "D:\dev_tools\file_attach\.minio.sys\config\config.json" file. Although this method can change the account and password, it is not safe and not recommended.
config.json File Contents:
{"api":{"_":[{"key":"requests_max","value":"0"},{"key":"requests_deadline","value":"10s"},{"key":"cluster_deadline","value":"10s"},{"key":"cors_allow_origin","value": "*"},{"key":"remote_transport_deadline","value":"2h"},{"key":"list_quorum","value":"strict"},{"key":"extend_list_cache_life","value":"0s"},{"key":"replication_workers ","value":"100"}]},"audit_webhook":{"_":[{"key":"enable","value":"off"},{"key":"endpoint","value":""},{"key":"auth_token","value":""},{"key":"client_cert","value":""} ,{"key":"client_key","value":""}]},"cache":{"_":[{"key":"drives","value":""},{"key":"exclude","value":""},{"key":"expiry","value":"90"},{"key":"quota","value":"80"},{ "key":"after","value":"0"},{"key":"watermark_low","value":"70"},{"key":"watermark_high","value":"80"},{"key":"range","value":"on"},{"key":"commit","value":" writethrough"}]},"compression":{"_":[{"key":"enable","value":"off"},{"key":"allow_encryption","value":"off"},{"key":"extensions","value":".txt,.log,.csv,.json,.tar,. xml,.bin"},{"key":"mime_types","value":"text/*,application/json,application/xml,binary/octet-stream"}]},"credentials":{"_":[{"key":"access_key","value":"minioadmin"}, {"key":"secret_key","value":"minioadmin"}]},"etcd":{"_":[{"key":"endpoints","value":""},{"key":"path_prefix","value":""},{"key":"coredns_path","value":"/skydns"},{" key":"client_cert","value":""},{"key":"client_cert_key","value":""}]},"heal":{"_":[{"key":"bitrotscan","value":"off"},{"key":"max_sleep","value":"1s"},{"key":"max_io" ,"value":"10"}]},"identity_ldap":{"_":[{"key":"server_addr","value":""},{"key":"username_format","value":""},{"key":"user_dn_search_base_dn","value":""},{"key":"user_ dn_search_filter","value":""},{"key":"group_search_filter","value":""},{"key":"group_search_base_dn","value":""},{"key":"sts_expiry","value":"1h"},{"key":"tls_skip_ verify","value":"off"},{"key":"server_insecure","value":"off"},{"key":"server_starttls","value":"off"},{"key":"lookup_bind_dn","value":""},{"key":"lookup_bind_ password","value":""}]},"identity_openid":{"_":[{"key":"config_url","value":""},{"key":"client_id","value":""},{"key":"claim_name","value":"policy"},{"key":"claim_ prefix","value":""},{"key":"scopes","value":""},{"key":"jwks_url","value":""}]},"kms_kes":{"_":[{"key":"endpoint","value":""},{"key":"key_name","value":""},{"key":" cert_file","value":""},{"key":"key_file","value":""},{"key":"capath","value":""}]},"kms_vault":{"_":[{"key":"endpoint","value":""},{"key":"key_name","value":""},{"key ":"auth_type","value":"approle"},{"key":"auth_approle_id","value":""},{"key":"auth_approle_secret","value":""},{"key":"capath","value":""},{"key":"key_version","value ":""},{"key":"namespace","value":""}]},"logger_webhook":{"_":[{"key":"enable","value":"off"},{"key":"endpoint","value":""},{"key":"auth_token","value":""}]},"notify_ amqp":{"_":[{"key":"enable","value":"off"},{"key":"url","value":""},{"key":"exchange","value":""},{"key":"exchange_type","value":""},{"key":"routing_key","value":""}, {"key":"mandatory","value":"off"},{"key":"durable","value":"off"},{"key":"no_wait","value":"off"},{"key":"internal","value":"off"},{"key":"auto_deleted","value":"off" },{"key":"delivery_mode","value":"0"},{"key":"queue_limit","value":"0"},{"key":"queue_dir","value":""}]},"notify_elasticsearch":{"_":[{"key":"enable","value":"off"},{ "key":"url","value":""},{"key":"format","value":"namespace"},{"key":"index","value":""},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"},{"key":" username","value":""},{"key":"password","value":""}]},"notify_kafka":{"_":[{"key":"enable","value":"off"},{"key":"topic","value":""},{"key":"brokers","value":""},{" key":"sasl_username","value":""},{"key":"sasl_password","value":""},{"key":"sasl_mechanism","value":"plain"},{"key":"client_tls_cert","value":""},{"key":"client_tls_ key","value":""},{"key":"tls_client_auth","value":"0"},{"key":"sasl","value":"off"},{"key":"tls","value":"off"},{"key":"tls_skip_verify","value":"off"},{"key":"queue_ limit","value":"0"},{"key":"queue_dir","value":""},{"key":"version","value":""}]},"notify_mqtt":{"_":[{"key":"enable","value":"off"},{"key":"broker","value":""},{"key ":"topic","value":""},{"key":"password","value":""},{"key":"username","value":""},{"key":"qos","value":"0"},{"key":"keep_alive_interval","value":"0s"},{"key":" reconnect_interval","value":"0s"},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"}]},"notify_mysql":{"_":[{"key":"enable","value":"off"},{"key":" format","value":"namespace"},{"key":"dsn_string","value":""},{"key":"table","value":""},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"},{"key":"max_ open_connections","value":"2"}]},"notify_nats":{"_":[{"key":"enable","value":"off"},{"key":"address","value":""},{"key":"subject","value":""},{"key":"username","value ":""},{"key":"password","value":""},{"key":"token","value":""},{"key":"tls","value":"off"},{"key":"tls_skip_verify","value":"off"},{"key":"cert_authority","value":""} ,{"key":"client_cert","value":""},{"key":"client_key","value":""},{"key":"ping_interval","value":"0"},{"key":"streaming","value":"off"},{"key":"streaming_async"," value":"off"},{"key":"streaming_max_pub_acks_in_flight","value":"0"},{"key":"streaming_cluster_id","value":""},{"key":"queue_dir","value":""},{"key":"queue_limit"," value":"0"}]},"notify_nsq":{"_":[{"key":"enable","value":"off"},{"key":"nsqd_address","value":""},{"key":"topic","value":""},{"key":"tls","value":"off"},{"key":"tls_ skip_verify","value":"off"},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"}]},"notify_postgres":{"_":[{"key":"enable","value":"off"},{"key":"format", "value":"namespace"},{"key":"connection_string","value":""},{"key":"table","value":""},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"},{"key":"max_ open_connections","value":"2"}]},"notify_redis":{"_":[{"key":"enable","value":"off"},{"key":"format","value":"namespace"},{"key":"address","value":""},{"key":"key"," value":""},{"key":"password","value":""},{"key":"queue_dir","value":""},{"key":"queue_limit","value":"0"}]},"notify_webhook":{"_":[{"key":"enable","value":"off"},{" key":"endpoint","value":""},{"key":"auth_token","value":""},{"key":"queue_limit","value":"0"},{"key":"queue_dir","value":""},{"key":"client_cert","value":""},{"key":" client_key","value":""}]},"policy_opa":{"_":[{"key":"url","value":""},{"key":"auth_token","value":""}]},"region":{"_":[{"key":"name","value":""}]},"scanner":{"_":[{" key":"delay","value":"10"},{"key":"max_wait","value":"15s"}]},"storage_class":{"_":null}} First, close the console app you just opened, and the correct way to do it is as follows:
Of course, you can also use setx to set permanent variables, see:
MinIO encrypts the configuration information, as shown in the following figure:
Attempting encryption of all config, IAM users and policies on MinIO backend
Note:The account number should be at least 3 characters long, and the password should be 8 characters long。 Otherwise, the error will be as follows:
Access key length should be at least 3, and secret key length at least 8 characters
MinIO is installed as a service under Windows
Every time you start MinIO through the command line, it is very inconvenient, and it is easy to close the window, and the MinIO application will be closed.
It can be deployed as a Windows service through the NSSM tool, such as:
First, add NSSM.exe inside the system path variable. (omitted)
Create a new install.cmd file with the following script command:
Right-click to run as administrator, as shown in the following image:
Reopen the website and log in with the account: itsvse password: ttsvse123456.
Let's create a bucket named test,And try to upload a file,You can share the file with friends,You can also set the link validity period,It can be used as a private network disk as shown in the figure below:
Some people may ask, what is the difference between this and saving directly to a hard disk folder?
1. MinIO provides a web visual file viewing interface; 2. Its core is actually distributed, distributing the same file on different server nodes to ensure the reliability of the file; 3. If our storage is a remote server, whether we need to upload to the server through other protocols, such as: FTP upload to the server, FTP deployment is also very troublesome; 4. It has some advanced features, such as: share files directly with friends and set link validity periods.
Therefore, we cannot think of it as just middleware that helps you store files in folders.
(End)
|