以Linux系统编译打包 NMON Visualizer 为例: # 一、下载和安装Apache Ant 下载 [Apache Ant](http://ant.apache.org/bindownload.cgi) 假设下载文件为 apache-ant-1.10.9-bin.tar.bz2 ,解压到目录:/opt/apache-ant/apache-ant-1.10.9 ```bash [root@yz219 apache-ant]# pwd /opt/apache-ant [root@yz219 apache-ant]# tar xf apache-ant-1.10.9-bin.tar.bz2 ``` 修改环境变量: ```bash [root@yz219 apache-ant]# vim ~/.bash_profile export ANT_HOME=/opt/apache-ant/apache-ant-1.10.9 export JAVA_HOME=/usr/java/jdk1.8.0_271-amd64/ export PATH=${PATH}:${ANT_HOME}/bin ``` 注意修改ANT\_HOME和JAVA\_HOME为实际路径。 # 二、下载和安装NMON Visualizer 下载NMON Visualizer源码:[https://github.com/nmonvisualizer/nmonvisualizer](https://github.com/nmonvisualizer/nmonvisualizer) 解压源码,假设在目录:/opt/NMONVisualizer ```bash [root@yz219 ~]# cd /opt/NMONVisualizer [root@yz219 NMONVisualizer]# ${ANT_HOME}/bin/ant ``` # 三、参考 - [nmonvisualizer](https://github.com/nmonvisualizer/nmonvisualizer)