拆分gluster整理

This commit is contained in:
John
2017-09-06 17:43:11 +08:00
parent 8d9a29b1a1
commit c075c395f8
2 changed files with 0 additions and 21 deletions

View File

@ -1,13 +0,0 @@
#!/bin/bash
# 编译
go build src/gapp/gluster/gluster.go
## 同步执行文件到测试节点
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.147:/home/john/gluster
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.186:/home/john/gluster
sshpass -p 123456 scp -P 22 ./gluster john@192.168.2.196:/home/john/gluster
# 同步配置文件到测试节点
sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.147:/home/john/gluster.json
sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.186:/home/john/gluster.json
sshpass -p 123456 scp -P 22 ./src/gapp/gluster/gluster_server.json john@192.168.2.196:/home/john/gluster.json
##删除本地执行文件
#rm gluster

View File

@ -1,8 +0,0 @@
#!/bin/bash
# 生成交叉编译的可执行文件cbuild
go build src/gapp/cbuild/cbuild.go
# 开始交叉编译gluster
#./cbuild src/gapp/gluster/gluster.go --name=gluster --version=lastest
./cbuild src/gapp/gluster/gluster.go --name=gluster --version=0.6 --arch=386,amd64 --os=linux,windows
# 删除临时可文件
rm cbuild