Added Alias argument in configuring/using mc client for minio server

Both in README.md as well as sample commands when starting minio server
This commit is contained in:
frankw 2016-01-26 10:42:21 +01:00
parent 67a70eb6d6
commit 0a5094c73a
2 changed files with 9 additions and 9 deletions

View File

@ -112,9 +112,9 @@ To configure Minio Client.
$ wget https://dl.minio.io/client/mc/release/linux-amd64/mc $ wget https://dl.minio.io/client/mc/release/linux-amd64/mc
$ chmod 755 mc $ chmod 755 mc
$ ./mc config host add http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ $ ./mc config host add myminio http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ
$ ./mc mb localhost:9000/photobucket $ ./mc mb myminio/photobucket
$ ./mc cp --recursive ~/Photos localhost:9000/photobucket $ ./mc cp --recursive ~/Photos myminio/photobucket
Starting minio server: Starting minio server:
Listening on http://127.0.0.1:9000 Listening on http://127.0.0.1:9000

View File

@ -312,15 +312,15 @@ func initServer() (*configV2, *probe.Error) {
Println("\nTo configure Minio Client.") Println("\nTo configure Minio Client.")
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
Println("\n\tDownload https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc.exe") Println("\n\tDownload https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc.exe")
Println("\t$ mc.exe config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) Println("\t$ mc.exe config host add myminio http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey)
Println("\t$ mc.exe mb localhost:9000/photobucket") Println("\t$ mc.exe mb myminio/photobucket")
Println("\t$ mc.exe cp --recursive C:\\Photos localhost:9000/photobucket") Println("\t$ mc.exe cp --recursive C:\\Photos myminio/photobucket")
} else { } else {
Println("\n\t$ wget https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc") Println("\n\t$ wget https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc")
Println("\t$ chmod 755 mc") Println("\t$ chmod 755 mc")
Println("\t$ ./mc config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) Println("\t$ ./mc config host add myminio http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey)
Println("\t$ ./mc mb localhost:9000/photobucket") Println("\t$ ./mc mb myminio/photobucket")
Println("\t$ ./mc cp --recursive ~/Photos localhost:9000/photobucket") Println("\t$ ./mc cp --recursive ~/Photos myminio/photobucket")
} }
Println() Println()
return conf, nil return conf, nil