centos7 查看minio服务是否开启
时间: 2023-09-06 18:10:15 浏览: 133
你可以使用以下命令来检查minio服务是否正在运行:
```
systemctl status minio
```
如果服务正在运行,你将会看到如下输出:
```
● minio.service - MinIO
Loaded: loaded (/etc/systemd/system/minio.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-05-12 11:12:25 UTC; 1 weeks 0 days ago
Main PID: 1454 (minio)
Tasks: 23
Memory: 19.5M
CGroup: /system.slice/minio.service
└─1454 /usr/local/bin/minio server /data
May 12 11:12:25 centos7 systemd[1]: Started MinIO.
```
如果服务未运行,则会显示“inactive”或“dead”的状态。例如:
```
● minio.service - MinIO
Loaded: loaded (/etc/systemd/system/minio.service; enabled; vendor preset: disabled)
Active: inactive (dead)
```
如果服务未运行,则可以使用以下命令启动它:
```
systemctl start minio
```
阅读全文