vim /usr/lib/systemd/system/minio.service
1 [Unit] 2 Description=Minio service 3 Documentation=https://docs.minio.io/ 4 5 [Service] 6 WorkingDirectory=/root/minio/ 7 ExecStart=/root/minio/run.sh #run.sh ,编写的服务启动命令 8 9 Restart=on-failure 10 RestartSec=5 11 12 [Install] 13 WantedBy=multi-user.target
systemctl daemon-reload
systemctl start minio