Created
January 10, 2024 12:25
-
-
Save Nurlan199206/21b8969d5484c9e421606b994fb20f93 to your computer and use it in GitHub Desktop.
minio standalone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=======================================================systemd============================================================== | |
[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/bin/ | |
User=minio-user | |
Group=minio-user | |
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 | |
===========================================================/etc/default/minio=============================================== | |
MINIO_VOLUMES="/opt/data" | |
MINIO_ACCESS_KEY="minio" | |
MINIO_SECRET_KEY="test" | |
MINIO_OPTS="--address 10.160.2.56:9000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment