Last active
August 29, 2015 14:03
-
-
Save yuanotes/9381667d251dae19562d to your computer and use it in GitHub Desktop.
Setup Server on Debain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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