Eric Guo's

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

New EC2 Box on Amazon Linux Install Log


Install postgresql 9.6

sudo yum update
sudo yum install
sudo yum install -y postgresql96 postgresql96-server postgresql96-libs postgresql96-contrib
sudo /etc/init.d/postgresql-9.6 initdb
sudo /etc/init.d/postgresql-9.6 start
sudo chkconfig postgresql-9.6 on
sudo -u postgres -i psql -c 'SELECT version();'

Install nginx

sudo yum install -y nginx
sudo chkconfig nginx on

Install redis


Install node.js

curl --silent --location | bash -
yum install -y gcc-c++ make
yum install -y nodejs

Install Go

tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" > /etc/profile.d/

Notes, if you upgrade new version, need rm -rf /user/local/go first.

Install shadowsocks-go

sudo yum install -y git
go get
wget -4qO- "" # record public IP

Build config.json

"method": "aes-128-cfb-auth",

cd ~/go/bin && nohup ./shadowsocks-server &

Install Mosh

sudo yum --enablerepo=epel install -y mosh