务必务必在服务器安全组放开对应的端口 也不要全放,用啥放啥,吃过挖矿病毒的亏。
rabbitMq
docker pull rabbitmq:3.7.7-management
//下载rabbitMQ镜像
docker run -d --name rabbitmq3.7.7 -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname myRabbit -e RABBITMQ_DEFAULT_VHOST=my_vhost -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:3.7.7-management
//启动rabbitMQ镜像
访问http://106.54.8.86:15672/ 用户名密码都为admin
zookeeper
docker pull zookeeper:3.4.12
//下载zookeeper镜像
docker run --name zookeeper -p 2182:2181 -v /root/zookeeper/data:/data -d zookeeper:3.4.12
//运行zookeeper容器
dubbo-admin
docker run --name dubbo-admin -p 8081:8080 -v /root/dubbo-admin/tomcat-users.xml:[本地tomcat地址]/conf/tomcat-users.xml -v /root/dubbo-admin/log:[本地tomcat地址]/logs -d tomcat:8.5.29
//下载运行tomcat容器在8081端口运行,引入配置和日志
docker cp [本地war包地址]/dubbo-admin-2.5.4.war dubbo-admin:/www/server/tomcat8/webapps
//移动dubbo-admin镜像war包到tomcat容器webapp中
docker stop dubbo-admin
docker start dubbo-admin
//重启tomcat以便安装dubbo-admin
//访问http://106.54.8.86:8081/dubbo-admin-2.6.0/
//用户密码root
Post Views: 128