This commit is contained in:
zhangzhihan
2020-01-17 15:35:48 +08:00
commit 960bdaa91f
58 changed files with 7988 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
bucket_name=openbucket
#用户名密码改为实际的值
./mc config host add myminio http://127.0.0.1:9000 minio 1234567890
./mc mb myminio/$bucket_name
./mc policy public myminio/$bucket_name

View File

@@ -0,0 +1 @@
echo 3 > /proc/sys/vm/drop_caches &

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,8 @@
#!/bin/bash
while [ 1 ];
do
./minio server --address :9000 ./DATA1 >> ./minio.log 2>&1
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 30
done

View File

@@ -0,0 +1,3 @@
#!/bin/bash
killall minio_dmn.sh minio
./minio_dmn.sh &>/dev/null &

View File

@@ -0,0 +1,2 @@
#!/bin/bash
killall minio_dmn.sh minio

View File

@@ -0,0 +1,10 @@
#!/bin/bash
local_ip=$(ifconfig eth2 | grep 'inet' |grep -v inet6 | awk '{print $2}')
data="{\"Name\":\"MinioCache\",\"ID\":\"$local_ip:9000\",\"Address\":\"$local_ip\",\"Port\":9000,\"EnableTagOverride\":true,\"Tags\":[\"group=TangoCache\",\"capacity=20\"],\"Check\":{\"id\":\"minio\",\"name\":\"Minio TCP on port 9000\",\"tcp\":\"$local_ip:9000\",\"interval\":\"10s\",\"timeout\":\"1s\"}}"
curl -s http://localhost:8500/v1/agent/service/register -X PUT -i -H "Content-Type:application/json" -d "$data"
#curl http://localhost:8500/v1/agent/service/deregister/$local_ip:9000

View File

@@ -0,0 +1,6 @@
#!/bin/bash
while [ 1 ];
do
./mc rm -r --force --older-than=1 myminio/yspdata > /dev/null
done