내용으로 건너뛰기
Out of the Box
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
Fold/unfold all
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
minio
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Minio ====== ==== server ==== <code bash> export MINIO_ACCESS_KEY=admin export MINIO_SECRET_KEY=password export MINIO_WORM=on minio server --address :50055 ./data # minio server --address :50055 ./data1 ./data2 ./data3 ./data4 # minio server http://host{1...32}/export{1...32} </code> ==== client ==== <code python> import io import numpy as np from IPython import embed from minio import Minio from minio.error import BucketAlreadyExists from minio.error import BucketAlreadyOwnedByYou from minio.error import ResponseError ip = '127.0.0.1:50055' access_key = 'admin' secure_key = 'password' if __name__ == '__main__': data1 = np.random.random(1000) client = Minio(ip, access_key=access_key, secret_key=secure_key, secure=False) # Make a bucket with the make_bucket API call. try: client.make_bucket("logs") except BucketAlreadyOwnedByYou as err: pass except BucketAlreadyExists as err: pass except ResponseError as err: raise # Put an object 'pumaserver_debug.log' with contents from 'pumaserver_debug.log'. try: b_data = data1.tostring() with io.BytesIO(b_data) as f: client.put_object('logs', 'log-101', f, len(b_data)) except ResponseError as err: print(err) # Get a full object try: resp = client.get_object('logs', 'log-101') data2 = np.frombuffer(resp.read()) print((data1 == data2).all()) except ResponseError as err: print(err) </code> * 웹클라이언트: http://127.0.0.1:50055/minio/logs/ * 참조 * https://github.com/minio/minio-py * https://docs.min.io/docs/distributed-minio-quickstart-guide.html {{tag>minio s3 "object storage"}}
minio.txt
· 마지막으로 수정됨: 2024/03/23 02:38 저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
Fold/unfold all
맨 위로