一、docker安装nacos命令

docker pull nacos/nacos-server
docker run --name nacos -e MODE=standalone -p 8848:8848 -d nacos/nacos-server

二、docker安装kafka

docker安装zookeeper
docker pull  wurstmeister/zookeeper
docker run -d --name zookeeper -p 2181:2181 wurstmeister/zookeeper
docker pull wurstmeister/kafka
docker run -d --name kafka -p 9092:9092 --link zookeeper:zookeeper --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 --env KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 --env KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092 --env KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 wurstmeister/kafka

三、docker安装emqttx

docker pull emqx:4.4.2
docker run -d --name emqx -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 emqx:4.4.2
开启插件: emqx_auth_mnesia 
添加用户:
修改/emqx/etc/plugins/emqx_auth_username.conf
auth.user.1.username = admin
auth.user.1.password = public
关闭匿名连接
修改/emqx/etc/emqx.conf
allow_anonymous = false    //关闭匿名链接,默认开启

四、docker安装minio,minio迁移图片

docker pull minio/minio
docker run -p 9000:9000   -p 9001:9001   --name minio  -e "MINIO_ROOT_USER=admin"   -e "MINIO_ROOT_PASSWORD=123456"   -v /home/minioData:/data   minio/minio server /data --console-address ":9001"
安装rclone
curl https://rclone.org/install.sh | sudo bash
vim /root/.config/rclone/rclone.conf
# rclone.conf配置内容
[minio]
type = s3
provider = Minio
env_auth = false
access_key_id = 账号
secret_access_key = 密码
region = cn-east-1
endpoint = http://ip+端口
server_side_encryption =
 
[minio1]
type = s3
provider = Minio
env_auth = false
access_key_id = 账号
secret_access_key = 密码
region = cn-east-1
endpoint = http://ip+端口
location_constraint =
server_side_encryption =
同步桶迁移命令
rclone sync -P minio:test minio1:test

恒不动
105 声望15 粉丝