CenterOS安装JMXStrans
下载:wget http://central.maven.org/maven2/org/jmxtrans/jmxtrans/266/jmxtrans-266.rpm
安装:rpm -ivh jmxtrans-266.rpm
如果安装报错,执行该命令安装:rpm -i
jmxtrans-266.rpm --nodeps --force
配置文件路径:/var/lib/jmxtrans
启动:/etc/init.d/jmxtrans start
停止:/etc/init.d/jmxtrans stop
日志路径:/var/log/jmxtrans/jmxtrans.log
如果遇到如下错误:
Unable to start JVM: Permission denied (13)
需要添加:
wrapper.java.command=/home/teld/jdk1.8.0_65/bin/java
如果提示如下错误:
FATAL | wrapper | 2018/03/23 02:57:18 | ERROR:
Could not write pid file /var/run/jmxtrans/jmxtrans.pid: No such file or
directory
需要自己在/var/run下新建jmxtrans文件夹,并且在/var/run/jmxtrans下新建jmxtrans.pid文件,并赋777权限。