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

Go Server Record的更多相关文章

  1. Redhat FreeIPA Server 安装服务端和客户端 (实验:VMware环境下)

    实验环境:windows7 + vmware 15 + redhat 71:准备2台虚拟机:      虚拟机VMnet8,Subnet IP:192.168.145.0      Redhat 7( ...

  2. Apache Mod/Filter Development

    catalog . 引言 . windows下开发apache模块 . mod进阶: 接收客户端数据的 echo 模块 . mod进阶: 可配置的 echo 模块 . mod进阶: 过滤器 0. 引言 ...

  3. 通过jekyll建立静态网页

    部署一个网站需要三个步骤:(1) generating the site, (2) deploying it to the public Internet, and (3) assigning it ...

  4. Add Customerlize Button in More Button List In Odoo

    There're two commen type of actions in odoo: ir.actions.server,ir.actions.client_multi 1.Using ir.ac ...

  5. SDP协议译稿(Part 1)

    本文的翻译内容是基于Bluetooth Core Spec 2.1+EDR 协议中对SDP的描述,很多都是个人的理解,难免有疏漏,有争议或者疑问的地方,欢迎在此留言进行探讨. 2. Overview ...

  6. (20)odoo中的action

    ---------更新时间18:06 2016-09-18 星期日15:05 2016-03-14 星期一18:07 2016-02-19 星期五---------* 窗口动作   <?xml ...

  7. Sharepoint数据库存储过程

    转:http://dugan.bokee.com/630497.html Databases Table Stored Procedures(数据库表存储过程) Globals Table Store ...

  8. RH253读书笔记(4)-Lab 4 The Domain Name System

    Lab 4 The Domain Name System Goal: To install and configure a DNS server System Setup: Throughout th ...

  9. python---haproxy---文件操作

    haproxy 文件操作,操作属于简单操作,不复杂 # -*- coding:utf-8 -*- # LC def search(*args): #查找Haproxy文件中的服务器 list1 = [ ...

随机推荐

  1. python数字取反~

    >>> a = [1,2,3,4,5,7,6,4,2,10] >>> h = len(a)//2 >>> h 5 >>> ~h ...

  2. MySQL之中文乱码问题

    创建 my.ini 文件,在该文件中添加以下内容,放在安装好的mysql根路径下: [client] default-character-set=utf8 [mysql] # 设置mysql客户端默认 ...

  3. Vue中数据的处理

    临时变量参数的存储 1.引用类型和值类型的差异,及存储 2.在项目中做的绑定值,首先v-model 存储到临时变量,同时把数据在提交到api之前,需要做处理,因为是引用类型的数据,在处理之前,会修改掉 ...

  4. Python 4 循环语句while

    while  [条件]:        条件这里满足布尔运算True则无限循环while里面代码. 固定条件的 基本的while循环, 如果if匹配那么 则执行打印登录成功,和break跳出整个循环, ...

  5. node.js 如何完美的从命令行接收参数所传递进来的值

    https://segmentfault.com/q/1010000000367285

  6. MFS搭建

    MooseFS是一个分布式存储的框架,其具有如下特性:     1.Free(GPL)     2.通用文件系统,不需要修改上层应用就可以使用     3.可以在线扩容,体系架构可伸缩性极强.     ...

  7. Libs文件夹下的Jar文件为什么不会自己主动放在Android Private Libraries文件夹下

    简而言之:这个问题就是由jar包反复冲突了! 这个问题一開始我出现了一种"自以为是"的答案,在Android Private Libraries文件夹下的是会打包到project可 ...

  8. HBase编程实例

    摘要:在前文中安装了Hbase,通过Hbase shell能够进行一些操作.可是和实际的编程实例联系起来不方便,因此本文介绍有关Hbase编程的实例. 一.使用Eclipse开发HBase应用程序 1 ...

  9. C语言指针实现字符串的反转

    题目要求: 编敲代码:从键盘随意输入一个字符串,输出该字符串. 然后.将该字符串逆序存放后再输出,要求用字符指针完毕. 代码: //解法一 #include <stdio.h> #incl ...

  10. Python帮助函数调试函数 用于获取对象的属性及属性值

    Python帮助函数调试函数 用于获取对象的属性及属性值 刚接触Python,上篇 <Python入门>第一个Python Web程序--简单的Web服务器 中调试非常不方便,不知道对象详 ...