Created
August 2, 2017 09:50
-
-
Save murachi1208/ca12afcaa83889574615bf8ea94c4a06 to your computer and use it in GitHub Desktop.
CentOS7.3 環境(Vagrant)に AWS S3 互換 Minio をインストールしてみる ref: http://qiita.com/murachi1208/items/2a5bde36ff1f1cc21c79
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
$ sudo curl https://dl.minio.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio | |
$ sudo chmod +x /usr/local/bin/minio | |
$ sudo curl https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service -o /etc/systemd/system/minio.service | |
$ sudo useradd -s /sbin/nologin minio-user |
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
$ sudo mkdir -p /var/lib/minio | |
$ sudo chown minio-user:minio-user /var/lib/minio |
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
$ sudo systemctl enable minio | |
$ sudo systemctl start minio |
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
$ sudo curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | |
$ sudo python get-pip.py | |
$ sudo pip install awscli |
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
$ aws configure | |
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE | |
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
Default region name [None]: | |
Default output format [None]: |
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
$ aws --endpoint-url http://localhost:9000 s3 mb s3://miniotest | |
make_bucket: miniotest | |
$ aws --endpoint-url http://localhost:9000 s3 ls | |
2017-08-03 03:46:03 miniotest |
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
# Local export path. | |
MINIO_VOLUMES="/var/lib/minio/" | |
# Use if you want to run Minio on a custom port. | |
MINIO_OPTS="--address :9000" | |
# Access Key of the server. | |
MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE | |
# Secret key of the server. | |
MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment