##1 首先安装docker

sudo yum check-update
curl -sSL https://get.daocloud.io/docker | sh
sudo systemctl start docker
sudo systemctl status docker
sudo systemctl enable docker 


sudo -icd /usr/localwget https://golang.google.cn/dl/go1.16.7.linux-amd64.tar.gzyum install wget unzip -ytar -xvzf go1.16.7.linux-amd64.tar.gz
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export GOROOT=/usr/local/go
export GOPATH=/usr/local/go/path
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source /etc/profile ##在当前bash环境下读取并执行profile中的命令。go envyum install -y gitgit clone https://ghproxy.com/https://github.com/Mrs4s/go-cqhttp.git /root/go-cqhttpcd /root/go-cqhttp && go buildchmod 777 go-cqhttp./go-cqhttpnohup ./go-cqhttpdocker pull asupc/qqbot
docker run --name=qqbot1 -p 5010:5010 asupc/qqbot
ifconfig -a./go-cqhttp -ddocker restart qqbot1