# minio.service文件内填写 [Unit] Description=MinIO Documentation=https://docs.min.io Wants=network-online.target After=network-online.target AssertFileIsExecutable=/usr/local/minio/bin/minio [Service] # User and group User=minio Group=minio EnvironmentFile=/usr/local/minio/etc/minio.conf ExecStart=/usr/local/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES # Let systemd restart this service always Restart=always # Specifies the maximum file descriptor number that can be opened by this process LimitNOFILE=65536 # Disable timeout logic and wait until process is stopped TimeoutStopSec=infinity SendSIGKILL=no [Install] WantedBy=multi-user.target
```shell May 14 20:57:22 Change-myself minio: ERROR Unable to validate passed arguments: host in server address should be this server May 14 20:57:22 Change-myself minio: > Please check –address parameter May 14 20:57:22 Change-myself minio: HINT: May 14 20:57:22 Change-myself minio: –address binds to a specific ADDRESS:PORT, ADDRESS can be an IPv4/IPv6 address or hostname (default port is ‘:9000’)
* ```shell May 14 21:01:13 Change-myself minio: ERROR Unable to validate credentials inherited from the shell environment: Invalid credentials May 14 21:01:13 Change-myself minio: > Please provide correct credentials May 14 21:01:13 Change-myself minio: HINT: May 14 21:01:13 Change-myself minio: Access key length should be at least 3, and secret key length at least 8 characters # 用户名、密码配置错误, 长度问题 MINIO_ACCESS_KEY="MYMINIO" MINIO_SECRET_KEY="12345678"