天天看點

zabbix tomcat 監控部署tomcat主機配置

tomcat主機配置

1、關閉selinux或不關閉selinux

關閉selinux

#vim /etc/selinux/config  
SELINUX=disabled
           

或添加SELinux政策

#cat /var/log/audit/audit.log | grep zabbix_server | grep denied | audit2allow -M zabbix_server_setrlimit
           

2、修改hosts檔案

#vim /ets/hosts
192.168.10.62 hlwt02
           

注意:不修改hosts檔案tomcat無法啟動

3、修改Catania.sh配置檔案,将CATALINA_OPTS=參數改為如下參數配置

#vim /home/tomcat/bin/catalina.sh 
CATALINA_OPTS="-Djava.security.egd=file:/dev/./urandom 
-Djava.library.path=/opt/apr/apr/lib
-Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=192.168.10.61
-Dcom.sun.management.jmxremote.port=12345
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"