google云服务器 ss安装

1.打开google云,注册成功后,打开右上角控制台

2.打开左上角三横线,产品和服务,点击计算引擎

3.创建实例,地区选东亚B,机器类型0.6g内存1个共享cpu,启动磁盘Uuntu 16.04LTS,防火墙请允许http流量允许https流量,创建成功后,记住外部ip

4.安装ss服务

  • 建立root密码,sudo passwd

  • 安装ss服务

su
输入密码,不会显示
sudo apt-get update

sudo apt-get install -y python-pip

sudo pip install shadowsocks
sudo pip install --upgrade pip

sudo apt-get install -y python-m2crypto
password修改成自己的

cat >>/etc/shadowsocks.json<<EOF
{
"server":"0.0.0.0",
"server_port":443,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"woaibeijintiananmen",
"timeout":300,
"method":"aes-256-cfb"
}
EOF

sudo chmod 755 /etc/shadowsocks.json

cat >>/etc/rc.local<<EOF
/usr/local/bin/ssserver –c /etc/shadowsocks.json
EOF

sudo ssserver -c /etc/shadowsocks.json -d start

Comments

comments powered by Disqus