Skip to content

Instantly share code, notes, and snippets.

@brianlan
Created December 7, 2019 10:33
Show Gist options
  • Save brianlan/e48e698f0285ab4002bee8ee3b2f7af8 to your computer and use it in GitHub Desktop.
Save brianlan/e48e698f0285ab4002bee8ee3b2f7af8 to your computer and use it in GitHub Desktop.
setup_centos
port=$1; shift;
passwd=$1; shift;
yum check-update
curl -fsSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
docker pull shadowsocks/shadowsocks-libev
docker run -e PASSWORD=${passwd} -e METHOD=chacha20-ietf-poly1305 -p${port}:8388 -p${port}:8388/udp -d --restart always shadowsocks/shadowsocks-libev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment