一、安装配置Docker
1.1 安装docker docker-compose
1.1.1 阿里云:
yum update -y
yum install docker epel-release python-pip -y
pip install --upgrade pip
pip install docker-compose
1.1.2 腾讯云
yum update -y
yum install docker epel-release python-pip -y
pip install --upgrade pip
yum -y install gcc
yum -y install python-devel
pip install -I requests==2.9 //可参考文章下方的参考链接
pip install docker-compose
1.2 配置daemon.json
- 让docker从国内的阿里云拉取镜像,提高下载速度.
[root@test ~]# cat /etc/docker/daemon.json
{"registry-mirrors": ["http://579fe187.m.daocloud.io","https://pee6w651.mirror.aliyuncs.com"]}
1.3 启动docker
[root@test ~]# systemctl start docker
[root@test ~]# systemctl enable docker
二、安装配置pinpoint
2.1 下载pinpoint-docker
下载地址 https://github.com/naver/pinpoint-docker ,使用工具shadowsockets下载,如果没有服务器,可以访问搬瓦工进行服务器购买。要不然速度会比较慢。
2.2 启动pinpoint服务
unzip pinpoint-docker.zip
cd Pinpoint-Docker
docker-compose pull && docker-compose up -d
附: 直接启动会报错,需要注意的两个小点如下:
1. 修改docker-compose.yml文件的 volumes 参数下面的相对路径改为绝对路径
volumes:
- /home/pinpoint/hbase
- /home/pinpoint/zookeeper
2. 关闭之前安装的pp-col和pp-web进程,因为一个端口不能同时被使用两次
2.3 查看Pinpoint启动完成后所起的容器
[root@i-vzdytl5t pinpoint-docker]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
770e180203e9 pinpointdocker/pinpoint-quickstart "catalina.sh run" 3 hours ago Up 3 hours 0.0.0.0:8000->8080/tcp pinpoint-quickstart
968c689aad3d pinpointdocker/pinpoint-agent:1.7.3 "/usr/local/bin/co..." 3 hours ago Up 3 hours pinpoint-agent
19fac27003e3 pinpointdocker/pinpoint-web:1.7.3 "/usr/local/bin/st..." 3 hours ago Up 3 hours 0.0.0.0:9997->9997/tcp, 0.0.0.0:8079->8080/tcp pinpoint-web
08f7242e3612 pinpointdocker/pinpoint-collector:1.7.3 "/usr/local/bin/st..." 3 hours ago Up 3 hours 8080/tcp, 0.0.0.0:9994-9996->9994-9996/tcp, 0.0.0.0:9995-9996->9995-9996/udp pinpoint-collector
23262f75eec0 pinpointdocker/pinpoint-hbase:1.7.3 "/bin/sh -c '${BAS..." 3 hours ago Up 3 hours 0.0.0.0:16010->16010/tcp, 0.0.0.0:16030->16030/tcp, 0.0.0.0:60000->60000/tcp, 0.0.0.0:60020->60020/tcp, 0.0.0.0:2180->2181/tcp pinpoint-hbase
f0525f78484e flink:1.3.1 "/docker-entrypoin..." 4 hours ago Up 4 hours 6123/tcp, 0.0.0.0:6121-6122->6121-6122/tcp, 0.0.0.0:19994->19994/tcp, 8081/tcp pinpoint-flink-taskmanager
ec7959d91bab zookeeper:3.4 "/docker-entrypoin..." 4 hours ago Up 4 hours 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker_zoo3_1
67fe5108a1f8 zookeeper:3.4 "/docker-entrypoin..." 4 hours ago Up 4 hours 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker_zoo2_1
ff751bd4ce44 zookeeper:3.4 "/docker-entrypoin..." 4 hours ago Up 4 hours 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker_zoo1_1
34ae285a9246 flink:1.3.1 "/docker-entrypoin..." 4 hours ago Up 4 hours 6123/tcp, 0.0.0.0:8081->8081/tcp pinpoint-flink-jobmanager
2.4 访问Pinpoint监控服务系统
1. 浏览器访问pinpoint的web页面: http://10.39.43.117:8079/
2. 浏览器访问hbase页面:http://10.39.43.117:16010
3. 如果上面两个页面都能正常访问,那么Docker方式部署Pinpoint完成
2.5 注意事项
如果按照上述操作无法显示页面,检查阿里云的安全组设置。要把8079端口打开。
参考链接:
https://blog.csdn.net/win_turn/article/details/51585194
https://blog.csdn.net/coder_Gray/article/details/77189002
https://www.jianshu.com/p/74e4be40b3b9
来源:CSDN
作者:李俊的博客
链接:https://blog.csdn.net/qq_36441027/article/details/84249296