目录
/opt/zipkin
Compose安装减压
docker-compose --version
下载zipkin镜像
docker pull openzipkin/zipkin
创建数据库
#注意mysql数据库版本最好是5.6-5.7的,我用mysql8.0连接不成功
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50731
Source Host : 127.0.0.1:3306
Source Database : gcms_zipkin
Target Server Type : MYSQL
Target Server Version : 50731
File Encoding : 65001
Date: 2020-10-10 18:01:04
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for zipkin_annotations
-- ----------------------------
DROP TABLE IF EXISTS `zipkin_annotations`;
CREATE TABLE `zipkin_annotations` (
`trace_id_high` bigint(20) NOT NULL DEFAULT '0' COMMENT 'If non zero, this means the trace uses 128 bit traceIds instead of 64 bit',
`trace_id` bigint(20) NOT NULL COMMENT 'coincides with zipkin_spans.trace_id',
`span_id` bigint(20) NOT NULL COMMENT 'coincides with zipkin_spans.id',
`a_key` varchar(255) NOT NULL COMMENT 'BinaryAnnotation.key or Annotation.value if type == -1',
`a_value