1. 程式人生 > >部署zipkin-server

部署zipkin-server

Storage:mysql-5.7

Collector:RabbitMQ-3.6.15

System:Windows7/CentOS7

一、建立啟動指令碼

@ECHO OFF
set RABBIT_ADDRESSES=192.168.4.110:5672
set RABBIT_USER=rabbituser
set RABBIT_PASSWORD=hdxy123
set STORAGE_TYPE=mysql
set MYSQL_HOST=192.168.4.110
set MYSQL_TCP_PORT=3306
set MYSQL_USER=root
set MYSQL_PASS=hdxy123
set MYSQL_DB=zipkin
set MYSQL_USE_SSL=false
::windows 10 64bit版本,預設引數啟動zipkin server 會報錯,Native memory allocation (malloc) failed to allocate 360816 bytes for Chunk::new
::需要增加ReservedCodeCacheSize大小
::linux shell暫未嘗試
set JAVA_OPTS="-XX:ReservedCodeCacheSize=64m" 
java -jar zipkin-server-2.11.7-exec.jar

執行啟動指令碼,啟動zipkin-server,通過瀏覽器訪問http://localhost:9411/zipkin