标签:
DUBBO安装配置注意事项
参考URL:http://blog.csdn.net/lichunan/article/details/40349645
======
管理端:
记得更改TOMCAT的端口号,不然会和监控器的8080冲突(如何部署在同一机器)
dubbo.properties 文件
dubbo.registry.address=zookeeper://x.x.x.x:2181
dubbo.admin.root.password=用户
dubbo.admin.guest.password=密码
=============
监控端:
dubbo.properties文件
dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
#dubbo.registry.address=multicast://224.5.6.7:1234
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=redis://127.0.0.1:6379
#dubbo.registry.address=dubbo://127.0.0.1:9090
dubbo.registry.address=zookeeper://x.x.x.x:2181
dubbo.protocol.port=7070
dubbo.jetty.port=8080
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN
在安装的时候,小峤同学遇到了一个妖怪的问题,就是监控端可能只能在JDK1.8以上的版本才能启动,在JDK1.7上启动时,老是说什么MONITOR进程已存在启动,然后就停了。
我直接注释相关的SHELL就搞定了。。
不知对不对。。
if [ -z "$SERVER_NAME" ]; then SERVER_NAME=`hostname` fi #PIDS=`ps -f | grep java | grep "$CONF_DIR" |awk ‘{print $2}‘` #if [ -n "$PIDS" ]; then # echo "ERROR: The $SERVER_NAME already started!" # echo "PID: $PIDS" # exit 1 #fi if [ -n "$SERVER_PORT" ]; then SERVER_PORT_COUNT=`netstat -tln | grep $SERVER_PORT | wc -l` if [ $SERVER_PORT_COUNT -gt 0 ]; then echo "ERROR: The $SERVER_NAME port $SERVER_PORT already used!" exit 1 fi fi
标签:
原文地址:http://www.cnblogs.com/aguncn/p/4378478.html