# CentOS7
rm -f /etc/yum.repos.d/*.repo
curl -L "http://mirrors.163.com/.help/CentOS7-Base-163.repo" -o /etc/yum.repos.d/CentOS7-Base-163.repo
curl -L "http://mirrors.aliyun.com/repo/epel-7.repo" -o /etc/yum.repos.d/epel-7-Ali.repo
curl -L "https://mirrors.cnnic.cn/docker-ce/linux/centos/docker-ce.repo" -o /etc/yum.repos.d/docker-ce.repo-Cnnic.repo
sed -i 's/https://download.docker.com/https://mirrors.cnnic.cn/docker-ce/' /etc/yum.repos.d/docker-ce.repo-Cnnic.repo
yum clean all
yum makecache fast
yum install dnf yum-utils device-mapper-persistent-data lvm2 -y
dnf update -y
dnf install axel git make gcc -y
#docker
dnf remove "docker*" -y
dnf install docker-ce -y
#curl -L "https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
systemctl start docker
systemctl enable docker
tee >/etc/docker/daemon.json <<EOF
{"graph":"/home/lab/docker/store","registry-mirrors":["http://hub-mirror.c.163.com"]}
EOF
systemctl daemon-reload
systemctl restart docker
#nodejs
curl -L "https://npm.taobao.org/mirrors/node/latest/node-v16.2.0-linux-x64.tar.gz" -o /opt/node-v16.0.0-linux-x64.tar.gz
tar -xzf /opt/node-v16.0.0-linux-x64.tar.gz -C /usr/local/src/
rm -f /opt/node-v16.0.0-linux-x64.tar.gz
ln -s /usr/local/src/node-v16.0.0-linux-x64/bin/node /usr/bin/node
ln -s /usr/local/src/node-v16.0.0-linux-x64/bin/npm /usr/bin/npm
ln -s /usr/local/src/node-v16.0.0-linux-x64/bin/npx /usr/bin/npx
#proxychains
git clone https://github.com/rofl0r/proxychains-ng.git --depth=1 /opt/proxychains
cd /opt/proxychains
./configure --prefix=/usr --sysconfdir=/etc
make && make install
make install-config
cd ~ && rm -rf /opt/proxychains