Minio rpm安装后,启动失败。报:Job for minio.service failed because the control process exited with error code
【代码】Minio rpm安装后,启动失败。报:Job for minio.service failed because the control process exited with error code。
·
原因:权限问题
方案一:修改minio.service下的用户组,用户即可
- 修改用户组,用户
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio
[Service]
WorkingDirectory=/usr/local
User=root
Group=root
ProtectProc=invisible
EnvironmentFile=-/etc/default/minio
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
ExecStart=/usr/local/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
# Specifies the maximum number of threads this process can create
TasksMax=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
# Built for ${project.name}-${project.version} (${project.name})
- 重载配置
systemctl daemon-reload
systemctl enable minio
service minio start
方案二:赋予对应文件夹读写权限755
- 查看minio存储路径
service minio status
cat /etc/default/minio
- 设置权限 chmod -R 755 [文件夹]
- 重载配置
systemctl daemon-reload
systemctl enable minio
service minio start
更多推荐
已为社区贡献1条内容
所有评论(0)