微服务-基于Docker安装Sentinel
1、拉取Sentinel镜像
代码: docker pull bladex/sentinel-dashboard:1.8.0 实例: root@localhost howlong]# docker pull bladex/sentinel-dashboard:1.8.0 1.8.0: Pulling from bladex/sentinel-dashboard 169185f82c45: Pull complete 4346af5b5a4f: Pull complete 071ce1b99999: Pull complete feb8a653dea6: Pull complete Digest: sha256:feaae3ddd2c68c4b36164b2b7d7de553198390a9710b9de99737bb238be18ad8 Status: Downloaded newer image for bladex/sentinel-dashboard:1.8.0 docker.io/bladex/sentinel-dashboard:1.8.0 root@localhost howlong]#
2、构建Sentinel容器
代码: docker run --name sentinel -p 8858:8858 --ulimit nofile=1024 -d bladex/sentinel-dashboard:1.8.0 实例: [root@localhost howlong]# docker run --name sentinel -p 8858:8858 --ulimit nofile=1024 -d bladex/sentinel-dashboard:1.8.0 6fc113e9c8e0d8e13ea7c896999465f88bf2778db2e1f943d498a89224e9619a [root@localhost howlong]#
3、访问Sentinel
打开游览器,访问 http://虚拟机IP:Sentinel服务端口号 即可访问服务,默认账号和密码都是:sentinel 例如: http://192.168.27.129:8858