Go Server Record

Centos Setup Go


yum install glibc-headers gcc-c++

# 一键安装shadowsocks

1.

wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh && chmod +x shadowsocks.sh && ./shadowsocks.sh 2>&1 | tee shadowsocks.log

2.没有 256 gcm 加密

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.sh && chmod +x shadowsocks-go.sh && ./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log


# 卸载方法
# ./shadowsocks.sh uninstall
# 配置文件路径
# /etc/shadowsocks.json
# 常用命令:
#启动:
# /etc/init.d/shadowsocks start
#停止:
# /etc/init.d/shadowsocks stop
#重启:
# /etc/init.d/shadowsocks restart
#查看状态:
# /etc/init.d/shadowsocks status

安装锐速:

centos 7

wget --no-check-certificate -O rskernel.sh https://raw.githubusercontent.com/uxh/shadowsocks_bash/master/rskernel.sh && bash rskernel.sh

centos 6

wget --no-check-certificate -O appex.sh https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh && bash appex.sh install '2.6.32-642.el6.x86_64'

测速
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

wget https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
bash superbench.sh

yum install wget
yum install git

wget -r -p -np -k -P ~/tmp/ https://www.golangtc.com/static/go/1.9.2/go1.9.2.linux-amd64.tar.gz

cd ~/tmp/www.golangtc.com/static/go/1.9.2

tar -zxvf go1*.tar.gz -C /usr/local

cd /usr/local


mkdir vevigame
cd vevigame
mkdir gopath
mkdir mqantserver


vi /etc/profile

export GOROOT=/usr/local/go
export GOBIN=/usr/local/vevigame/veviserver/bin
export GOPATH=/usr/local/vevigame/gopath:/usr/local/vevigame/veviserver
export PATH=$PATH:$GOBIN:$GOPATH:$GOROOT/bin

 


export GOROOT=/usr/local/go
export GOBIN=/usr/local/vevisoft/mqantrobot/bin
export GOPATH=/usr/local/vevisoft/gopath:/usr/local/vevisoft/mqantrobot
export PATH=$PATH:$GOBIN:$GOPATH:$GOROOT/bin

source /etc/profile


export GOROOT=/usr/local/go
export GOBIN=/usr/local/vevigame/mqantserver/bin
export GOPATH=/usr/local/vevigame/gopath:/usr/local/vevigame/mqantserver
export PATH=$PATH:$GOBIN:$GOPATH:$GOROOT/bin


export GOROOT=/usr/local/go
export GOBIN=/usr/local/vevisoft/mqantserver/bin
export GOPATH=/usr/local/vevisoft/gopath:/usr/local/vevigame/mqantserver
export PATH=$PATH:$GOBIN:$GOPATH:$GOROOT/bin

更改最大连接数
添加防火墙接口


//安装ftp

go get golangtc.com/download/golang.org/x/net

go get github.com/golang/net
go get github.com/golang/text

go get github.com/gorilla/mux
go get github.com/gorilla/websocket
go get github.com/streadway/amqp

go get github.com/golang/protobuf
go get github.com/golang/net/context
go get github.com/gogo/protobuf

go get github.com/opentracing/basictracer-go
go get github.com/opentracing/opentracing-go
go get github.com/yireyun/go-queue
go get github.com/eclipse/paho.mqtt.golang
go get github.com/liangdas/mqant
go get github.com/garyburd/redigo
go get sourcegraph.com/sourcegraph/appdash
go get sourcegraph.com/sourcegraph/appdash-data

go get github.com/zheng-ji/goSnowFlake
go get github.com/go-sql-driver/mysql

go get

posted @ 2018-08-30 13:57  Vevi-DP  阅读(320)  评论(0编辑  收藏  举报