Skip to content

Instantly share code, notes, and snippets.

@ggicci
Created October 19, 2017 15:01
Show Gist options
  • Save ggicci/52ae2a45b5bb4945e5eafcd6898bc13c to your computer and use it in GitHub Desktop.
Save ggicci/52ae2a45b5bb4945e5eafcd6898bc13c to your computer and use it in GitHub Desktop.
setup-centos7-ssserver
#!/usr/bin/env bash
set -o errexit
set -o pipefail
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum install -y docker
systemctl start docker
systemctl enable docker.service
docker pull ggicci/shadowsocks
# fill in your own password
docker run -d -p 8388:8388 ggicci/shadowsocks -s 0.0.0.0 -p 8388 -m aes-256-cfb -k {{password}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment