上周玩了下goflyway,这里简单记录下安装命令。
centos7 x64
yum install epel-release
yum install go
yum install git
cd ~
mkdir go
vim ~/.bash_profile
GOROOT=/usr/lib/golang
export GOROOT
export PATH="$PATH:$GOROOT/bin"
GOPATH=/root/go
export PATH="$PATH:$GOPATH/bin"
source ~/.bash_profile
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/goflyway.sh && chmod +x goflyway.sh && bash goflyway.sh
./goflyway.sh(开始配置)
firewall-cmd --permanent --zone=public --add-port=(刚才输入的端口)/tcp
firewall-cmd --reload
windowsgoflyway.exe -up="cf://(远程域名):(端口)" -k="(密码)" -l=":(本地端口)"
转载于:https://blog.51cto.com/maxvision/2123134