【MySQL】第十四章:数据库监控(Yahoo)
作者:互联网
部署JDK [root@wallet01 ~]# yum remove -y java-1.7.0-openjdk [root@wallet01 ~]# yum remove -y java-1.6.0-openjdk [root@wallet01 ~]# tar zxvf jdk-7u80-linux-x64.tar.gz [root@wallet01 ~]# mv jdk1.7.0_80 /usr/local [root@wallet01 ~]# vi /etc/profile JAVA_HOME=/usr/local/jdk1.7.0_80 JAVA_BIN=/usr/local/jdk1.7.0_80/bin PATH=$PATH:$JAVA_BIN CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib export JAVA_HOME JAVA_BIN PATH CLASSPATH [root@wallet01 ~]# java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) 部署Maven [root@wallet01 ~]# tar zxvf apache-maven-3.5.4-bin.tar.gz -C /usr/local [root@wallet01 ~]# vi /etc/profile PATH=$PATH:/usr/local/apache-maven-3.5.4/bin [root@wallet01 ~]# source /etc/profile [root@wallet01 ~]# mvn -v Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00) Maven home: /usr/local/apache-maven-3.5.4 Java version: 1.7.0_80, vendor: Oracle Corporation, runtime: /usr/local/jdk1.7.0_80/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix" [root@wallet01 ~]# cd /usr/local/apache-maven-3.5.4/conf/ [root@wallet01 conf]# vi settings.xml <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> <mirror> <id>aliyun</id> <name>aliyun Maven</name> <mirrorOf>*</mirrorOf> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> </mirrors> [root@wallet01 ~]# git clone https://github.com/yahoo/mysql_perf_analyzer.git Initialized empty Git repository in /root/mysql_perf_analyzer/.git/ remote: Enumerating objects: 16, done. remote: Counting objects: 100% (16/16), done. remote: Compressing objects: 100% (13/13), done. remote: Total 1026 (delta 2), reused 10 (delta 2), pack-reused 1010 Receiving objects: 100% (1026/1026), 6.91 MiB | 1.99 MiB/s, done. Resolving deltas: 100% (402/402), done. [root@wallet01 ~]# cd mysql_perf_analyzer [root@wallet01 mysql_perf_analyzer]# mvn clean package [root@wallet01 mysql_perf_analyzer]# cd perfJettyServer/target [root@wallet01 target]# cp myperfserver-server.zip /usr/local/myperfserver [root@wallet01 ~]# cd /usr/local/myperfserver [root@wallet01 myperfserver]# unzip myperfserver-server.zip [root@wallet01 myperfserver]# ./start_myperf.sh http://192.168.1.204:9092/myperf 初始用户:myperf 初始密码:change
标签:wallet01,root,Yahoo,usr,MySQL,第十四章,PATH,80,local 来源: https://blog.51cto.com/13598811/2354122