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. 51nod1006 -最长公共子序列Lcs【动态规划】

    给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的). 比如两个串为: abcicba abdkscab ab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最 ...

  2. 一篇入门AngularJS

    目录 1.AngularJS 应用 2.AngularJS 指令 3.AngularJS 表达式 4.AngularJS 模型 5.AngularJS 控制器 6.AngularJS 作用域 7.An ...

  3. python爬虫18 | 就算你被封了也能继续爬,使用IP代理池伪装你的IP地址,让IP飘一会

    我们上次说了伪装头部 ↓ python爬虫17 | 听说你又被封 ip 了,你要学会伪装好自己,这次说说伪装你的头部 让自己的 python 爬虫假装是浏览器 小帅b主要是想让你知道 在爬取网站的时候 ...

  4. 强悍的 ubuntu —— 命令行访问网页

    所谓以命令行的方式访问网页,即是在终端下以文本的形式访问网站,这里推荐一个工具:w3m, $ sudo apt-get install w3m $ w3m www.baidu.com

  5. 2017 ACM-ICPC 亚洲区(西安赛区)网络赛 G. Xor

    There is a tree with nn nodes. For each node, there is an integer value a_ia​i​​, (1 \le a_i \le 1,0 ...

  6. hdu 4971 多校10最大权闭合图

    /* 很明显的最大权闭合图题 */ #include<stdio.h> #include<string.h> #include<queue> using names ...

  7. 一个神奇的PHP框架:Phalcon 之编译安装

    前言 CentOS7下升级PHP到最新版本以及编译安装phalcon框架,看相关文档无数遍,自己尝试编译安装之后才理解的更深,编译步骤以及碰到的问题做个简单的记录 php-7.0.11编译安装 1.下 ...

  8. Clojure:日期操作方法

    ;; 日期格式转换 (def df (java.text.SimpleDateFormat. "yyyy-MM-dd hh:mm:ss")) ;; 字符串转换到日期 (defn s ...

  9. 3.2 Piecewise Linear Interpolation(站点)

    Newton Interpolation: https://www.youtube.com/watch? v=EyRQXA56asI Piecewise Linear Interpolation: h ...

  10. php session自定义处理

    原文:http://www.cnblogs.com/mrcoke/  这个人的博客上转的. 这个博客也好: 学算法和数据结构!!http://blog.csdn.net/21aspnet/articl ...