要解鎖Linux上MinIO的安裝密碼,您需要按照以下步驟操作:
export MINIO_ROOT_USER=admin
export MINIO_ROOT_SECRET=your_strong_password
建議將變量寫入 /etc/profile
并執行 source /etc/profile
以持久化設置。/etc/systemd/system/minio.service
文件,內容如下:[Unit]
Description=MinIO
After=network.target
[Service]
Type=simple
User=root
Environment="MINIO_ROOT_USER=admin"
Environment="MINIO_ROOT_PASSWORD=your_password"
ExecStart=/usr/local/bin/minio server /data/minio --console-address ":9001"
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable minio
systemctl start minio
通過以上步驟,您可以設置或更改Linux上MinIO的管理員密碼。請確保使用強密碼以提高安全性。