Created
December 7, 2019 10:33
-
-
Save brianlan/e48e698f0285ab4002bee8ee3b2f7af8 to your computer and use it in GitHub Desktop.
setup_centos
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
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