linux 命令记录 // TODO 之后把这些做成脚本 yum update yum install rclonecurl -fsSL https://get.docker.com | bash -s docker --mirror Aliyunyum install -y yum-utils device-mappe yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.io yum install nginx yum list docker-ce --showduplicates | sort -r yum install docker-ce-x86_64 docker-ce-cli-20.10.9 containerd.io systemctl start docker docker ps docker version vim /etc/docker/demon.json systemctl restart docker systemctl daemon-reload systemctl enable docker docker run --restart=always --name tomcat -p 8080:8080 -v $PWD/webapps:/usr/local/tomcat/webapps -d tomcat docker run -p 3306:3306 --name mysql -v /mydata/mysql/log:/var/log/mysql -v /mydata/mysql/data:/var/lib/mysql -v /mydata/mysql/conf:/etc/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7 docker run -p 9000:9000 -p 9001:9001 --name minio -e "MINIO_ROOT_USER=root" -e "MINIO_ROOT_PASSWORD=*******" -v /mnt/data:/data quay.io/minio/minio server /data --console-address ":9001" mkdir -p /mydata/redis/conf touch /mydata/redis/conf/redis.conf docker run -p 6379:6379 --name redis -v /mydata/redis/data:/data -v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf -d redis redis-server /etc/redis/redis.conf --appendonly yes……

阅读全文