Skip to content

Instantly share code, notes, and snippets.

@yuanotes
Last active August 29, 2015 14:03
Show Gist options
  • Save yuanotes/9381667d251dae19562d to your computer and use it in GitHub Desktop.
Save yuanotes/9381667d251dae19562d to your computer and use it in GitHub Desktop.
Setup Server on Debain
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
export LC_ALL=en_US.UTF-8
apt-get update
apt-get install -y supervisor git subversion mercurial tmux
if [ ! -e ~/golang ]; then
mkdir ~/golang
fi
echo "export GOPATH=~/golang" >> ~/.bashrc
export GOPATH=~/golang
wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz
tar xf godeb-amd64.tar.gz
rm godeb-amd64.tar.gz
./godeb install 1.3
rm ./godeb
go get -v github.com/astaxie/beego
go get -v github.com/go-sql-driver/mysql
apt-get install -y mysql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment