下载安装软件可以看文档
http://www.minio.org.cn/docs/minio/linux/index.html
安装后:
创建一个Minio的systemd服务配置文件:
nano /etc/systemd/system/minio.service
将以下内容复制到文件中:
[Unit] Description=MinIO After=network.target [Service] Type=simple User=root ExecStart=/usr/local/bin/minio server --address :9000 /opt/minioData --config-dir /etc/minio --console-address :9001 Environment="MINIO_ACCESS_KEY=vPl334347iEwBeb35" Environment="MINIO_SECRET_KEY=rgadfsafNQeNbnh232WzdpXeLo" Restart=on-failure [Install] WantedBy=multi-user.target
保存并关闭文件
重新加载systemd配置文件
sudo systemctl daemon-reload
启动Minio服务:
sudo systemctl start minio
验证Minio服务已经在后台运行
sudo systemctl status minio
您应该能够看到类似以下内容的输出
● minio.service - MinIO Loaded: loaded (/etc/systemd/system/minio.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2023-04-25 12:00:00 UTC; 1min 0s ago Main PID: 1234 (minio) Tasks: 8 (limit: 1131) Memory: 10.8M CGroup: /system.slice/minio.service └─1234 /usr/local/bin/minio server --address :9000 /data1/minio
现在,Minio服务已在CentOS上作为后台服务运行。如果您想在系统启动时自动启动Minio,请运行以下命令:
sudo systemctl enable minio
这将启用Minio服务的自动启动。
标签:systemd,Minio,service,启动,--,systemctl,安装,minio From: https://www.cnblogs.com/init-007/p/17353393.html