Update setup_minio.sh

This commit is contained in:
Nikita Mikhaylov 2021-08-27 02:51:51 +03:00
parent daece09eab
commit 1adbb2db18

View File

@ -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