mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Update setup_minio.sh
This commit is contained in:
parent
daece09eab
commit
1adbb2db18
@ -8,12 +8,12 @@ chmod +x minio
|
|||||||
./minio server --address ":11111" ./data > /dev/null &
|
./minio server --address ":11111" ./data > /dev/null &
|
||||||
|
|
||||||
wget 'https://dl.min.io/client/mc/release/linux-amd64/mc'
|
wget 'https://dl.min.io/client/mc/release/linux-amd64/mc'
|
||||||
chmod +x mc
|
chmod +x ./mc
|
||||||
|
|
||||||
mc alias set clickminio http://localhost:11111 clickhouse clickhouse
|
./mc alias set clickminio http://localhost:11111 clickhouse clickhouse
|
||||||
mc admin user add clickminio test testtest
|
./mc admin user add clickminio test testtest
|
||||||
mc admin policy set clickminio readwrite user=test
|
./mc admin policy set clickminio readwrite user=test
|
||||||
mc mb clickminio/test
|
./mc mb clickminio/test
|
||||||
|
|
||||||
echo -e "a b c\na b c\na b c\n" > a.txt
|
echo -e "a b c\na b c\na b c\n" > a.txt
|
||||||
mc cp a.txt clickminio/test
|
./mc cp a.txt clickminio/test
|
||||||
|
Loading…
Reference in New Issue
Block a user