HowtoCeph: ajouter minio client
This commit is contained in:
parent
3ebd801f20
commit
62a5f9afb9
29
HowtoCeph.md
29
HowtoCeph.md
|
@ -810,6 +810,35 @@ $ exit
|
||||||
# radosgw-admin user create --uid="testuser" --display-name="First User"
|
# radosgw-admin user create --uid="testuser" --display-name="First User"
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
## Clients
|
||||||
|
|
||||||
|
### MinIO Client
|
||||||
|
|
||||||
|
Il s’agit un outil en ligne de commande pour interagir avec du stockage compatible Amazon S3. Le code est accessible sur [GitHub](https://github.com/minio/mc).
|
||||||
|
|
||||||
|
On défini un _alias_, qui est un nom pour le stockage S3.
|
||||||
|
|
||||||
|
```
|
||||||
|
mc alias set <alias> http://<hote> <access_key> <secret_key>
|
||||||
|
```
|
||||||
|
|
||||||
|
> Si on peut aussi préciser un port :
|
||||||
|
> ```
|
||||||
|
> mc alias set <alias> http://<hote>:<port> <access_key> <secret_key>
|
||||||
|
> ```
|
||||||
|
|
||||||
|
Pour lister les objets dans un _bucket_ :
|
||||||
|
|
||||||
|
```
|
||||||
|
mc ls <alias>/<bucket>
|
||||||
|
```
|
||||||
|
|
||||||
|
Pour _upload_ un fichier :
|
||||||
|
|
||||||
|
```
|
||||||
|
mc mv mon_fichier <alias>/<bucket>/
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# Troubleshooting
|
# Troubleshooting
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue