爲了方便測試,咱們在一臺機器上安裝所需有的軟件
部署時間:2019-03-25html
軟件名稱 | 版本號 |
---|---|
pinpoint系列(web, collector, agent) | 1.8.2(當前latest) |
tomcat | 7.0.93 |
hbase | 2.1.3 |
wget https://github.com/naver/pinpoint/releases/download/1.8.2/pinpoint-agent-1.8.2.tar.gz wget https://github.com/naver/pinpoint/releases/download/1.8.2/pinpoint-collector-1.8.2.war wget https://github.com/naver/pinpoint/releases/download/1.8.2/pinpoint-web-1.8.2.war
wget https://raw.githubusercontent.com/naver/pinpoint/master/hbase/scripts/hbase-create.hbase
詳見https://qianmoq.com/tomcat/tomcat_an_zhuang_bu_shu.htmljava
詳見https://qianmoq.com/hbase/hbase_an_zhuang_bu_shu.htmlgit
hbase-2.1.3/bin/hbase shell ./hbase-create.hbase
vim apache-tomcat-7.0.93/webapps/ROOT/WEB-INF/classes/pinpoint-collector.properties
暫時修改cluster.enable配置爲falsegithub
vim apache-tomcat-7.0.93/webapps/ROOT/WEB-INF/classes/hbase.properties
hbase.client.host修改成hbase服務地址web
hbase.client.port修改成hbase的zk地址shell
其餘配置先不變使用默認便可數據庫
apache-tomcat-7.0.93/bin/shutdown.sh apache-tomcat-7.0.93/bin/startup.sh
vim apache-tomcat-7.0.93/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
暫時修改cluster.enable配置爲falseapache
vim apache-tomcat-7.0.93/webapps/ROOT/WEB-INF/classes/hbase.properties
hbase.client.host修改成hbase服務地址bootstrap
hbase.client.port修改成hbase的zk地址vim
其餘配置先不變使用默認便可
apache-tomcat-7.0.93/bin/shutdown.sh apache-tomcat-7.0.93/bin/startup.sh
tar -xvzf pinpoint-agent-1.8.2.tar.gz -C pinpoint-agent
vim pinpoint-agent/pinpoint.config
修改profiler.collector.ip爲collector服務的地址
其餘的配置暫時不修改
vim apache-tomcat-7.0.93/bin/catalina.sh
在文件中增長如下配置
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/hadoop/dc/apm/pinpoint-agent/pinpoint-bootstrap-1.8.2.jar" CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.agentId=pinpoint-agent-001" CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.applicationName=PinpointWebServer"
pinpoint.agentId: 只要保證每一個應用不重複便可
pinpoint.applicationName: 如今是pinpoint中的名稱,能去分開便可
apache-tomcat-7.0.93/bin/shutdown.sh apache-tomcat-7.0.93/bin/startup.sh