pinpint 1.6.0 (APM) install in centos 6.8
# java, wget, unzip, git install
yum install wget git unzip java-1.7.0-openjdk -y
# hbase, pingpoint download
cd /opt
wget http://apache.mirror.cdnetworks.com/hbase/1.2.4/hbase-1.2.4-bin.tar.gz
wget http://apache.stu.edu.tw/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
git clone https://github.com/naver/pinpoint.git
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-collector-1.6.0.war
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-web-1.6.0.war
# uncompress (work directory still in /opt)
tar xvf hbase-1.2.4-bin.tar.gz
tar xvf apache-tomcat-8.5.9.tar.gz
mv apache-tomcat-8.5.9 tomcat8-web
tar xvf apache-tomcat-8.5.9.tar.gz
mv apache-tomcat-8.5.9 tomcat8-col
mkdir col
mkdir web
unzip pinpoint-collector-1.6.0.war -d col
unzip pinpoint-web-1.6.0.war -d web
# hbase initial
cd hbase-1.2.4
export JAVA_HOME="/usr/lib/jvm/jre-1.7.0"
bin/start-hbase.sh
bin/hbase shell /opt/pinpoint/hbase/scripts/hbase-create.hbase
# use tomcat to execute pinpoint collector
cd /opt/tomcat8-col/conf
sed -i 's/port="8005"/port="18005"/g' server.xml
sed -i 's/port="8080"/port="18080"/g' server.xml
sed -i 's/port="8443"/port="18443"/g' server.xml
sed -i 's/port="8009"/port="18009"/g' server.xml
sed -i 's/redirectPort="8443"/redirectPort="18443"/g' server.xml
sed -i "s/localhost/`ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'`/g" server.xml
cd /opt/tomcat8-col/webapps/ROOT
cp -rf /opt/col/* .
cd /opt/tomcat8-col
bin/startup.sh
# use tomcat to execute pinpoint webgui
/opt/tomcat8-web/conf
sed -i 's/port="8005"/port="28005"/g' server.xml
sed -i 's/port="8080"/port="28080"/g' server.xml
sed -i 's/port="8443"/port="28443"/g' server.xml
sed -i 's/port="8009"/port="28009"/g' server.xml
sed -i 's/redirectPort="8443"/redirectPort="28443"/g' server.xml
sed -i "s/localhost/`ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'`/g" server.xml
/opt/tomcat8-web/webapps/ROOT
cp -rf /opt/web/* .
cd /opt/tomcat8-web/
bin/startup.sh
# access pinpoint webgui
http://serverip:28080
##agent
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-agent-1.6.0.tar.gz
mkdir /opt/ppagent
tar xvf pinpoint-agent-1.6.0.tar.gz -C /opt/ppagent
cd /opt/ppagent
vi pinpoint.config
profiler.collector.ip=collector-ipaddress
## agent in monitor server
vi catalina.sh
AGENT_VERSION="1.6.0"
AGENT_ID="pp-serial-number"
APPLICATION_NAME="app-server-ip"
AGENT_PATH="/opt/ppagent/"
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$AGENT_PATH/pinpoint-bootstrap-${AGENT_VERSION}.jar"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.agentId=$AGENT_ID"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.applicationName=$APPLICATION_NAME"
yum install wget git unzip java-1.7.0-openjdk -y
# hbase, pingpoint download
cd /opt
wget http://apache.mirror.cdnetworks.com/hbase/1.2.4/hbase-1.2.4-bin.tar.gz
wget http://apache.stu.edu.tw/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
git clone https://github.com/naver/pinpoint.git
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-collector-1.6.0.war
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-web-1.6.0.war
# uncompress (work directory still in /opt)
tar xvf hbase-1.2.4-bin.tar.gz
tar xvf apache-tomcat-8.5.9.tar.gz
mv apache-tomcat-8.5.9 tomcat8-web
tar xvf apache-tomcat-8.5.9.tar.gz
mv apache-tomcat-8.5.9 tomcat8-col
mkdir col
mkdir web
unzip pinpoint-collector-1.6.0.war -d col
unzip pinpoint-web-1.6.0.war -d web
# hbase initial
cd hbase-1.2.4
export JAVA_HOME="/usr/lib/jvm/jre-1.7.0"
bin/start-hbase.sh
bin/hbase shell /opt/pinpoint/hbase/scripts/hbase-create.hbase
# use tomcat to execute pinpoint collector
cd /opt/tomcat8-col/conf
sed -i 's/port="8005"/port="18005"/g' server.xml
sed -i 's/port="8080"/port="18080"/g' server.xml
sed -i 's/port="8443"/port="18443"/g' server.xml
sed -i 's/port="8009"/port="18009"/g' server.xml
sed -i 's/redirectPort="8443"/redirectPort="18443"/g' server.xml
sed -i "s/localhost/`ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'`/g" server.xml
cd /opt/tomcat8-col/webapps/ROOT
cp -rf /opt/col/* .
cd /opt/tomcat8-col
bin/startup.sh
# use tomcat to execute pinpoint webgui
/opt/tomcat8-web/conf
sed -i 's/port="8005"/port="28005"/g' server.xml
sed -i 's/port="8080"/port="28080"/g' server.xml
sed -i 's/port="8443"/port="28443"/g' server.xml
sed -i 's/port="8009"/port="28009"/g' server.xml
sed -i 's/redirectPort="8443"/redirectPort="28443"/g' server.xml
sed -i "s/localhost/`ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'`/g" server.xml
/opt/tomcat8-web/webapps/ROOT
cp -rf /opt/web/* .
cd /opt/tomcat8-web/
bin/startup.sh
# access pinpoint webgui
http://serverip:28080
##agent
wget https://github.com/naver/pinpoint/releases/download/1.6.0/pinpoint-agent-1.6.0.tar.gz
mkdir /opt/ppagent
tar xvf pinpoint-agent-1.6.0.tar.gz -C /opt/ppagent
cd /opt/ppagent
vi pinpoint.config
profiler.collector.ip=collector-ipaddress
## agent in monitor server
vi catalina.sh
AGENT_VERSION="1.6.0"
AGENT_ID="pp-serial-number"
APPLICATION_NAME="app-server-ip"
AGENT_PATH="/opt/ppagent/"
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$AGENT_PATH/pinpoint-bootstrap-${AGENT_VERSION}.jar"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.agentId=$AGENT_ID"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.applicationName=$APPLICATION_NAME"
留言
張貼留言