2015.01.08 運行環(huán)境
端口分配
Dubbo監(jiān)控中心安裝1. 說明Simple Monitor掛掉不會影響到Consumer和Provider之間的調用,所以用于生產環(huán)境不會有風險。 Simple Monitor采用磁盤存儲統(tǒng)計信息,請注意安裝機器的磁盤限制,如果要集群,建議用mount共享磁盤。 charts目錄必須放在jetty.directory下,否則頁面上訪問不了。 2. 安裝wget http://code./mvn/releases/com/alibaba/dubbo-monitor-simple/2.5.3/dubbo-monitor-simple-2.5.3-assembly.tar.gz
tar zxvf dubbo-monitor-simple-2.5.3-assembly.tar.gz
mv dubbo-monitor-simple-2.5.3 /usr/local/dubbo-monitor-simple-4010
3. 配置cd /usr/local/dubbo-monitor-simple-4010
vi conf/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=zookeeper://172.20.32.211:2181?backup=172.20.32.143:2181,172.20.32.143:2182
#dubbo.registry.address=redis://127.0.0.1:6379
#dubbo.registry.address=dubbo://127.0.0.1:9090
dubbo.protocol.port=7070
dubbo.jetty.port=4010
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
4. 啟動./bin/start.sh
5. 停止./bin/stop.sh
6. 重啟:./bin/restart.sh
7. 調試:./bin/start.sh debug
8. 系統(tǒng)狀態(tài)./bin/dump.sh
9. 總控入口:./bin/server.sh start
./bin/server.sh stop
./bin/server.sh restart
./bin/server.sh debug
./bin/server.sh dump
10. 標準輸出tail -f logs/stdout.log
命令行: (See: Telnet Command Reference) 11. 驗證啟動狀態(tài)echo status | nc -i 1 127.0.0.1 7070
12. 訪問:
Dubbo管理控制臺安裝管理控制臺為內部裁剪版本,開源部分主要包含:路由規(guī)則,動態(tài)配置,服務降級,訪問控制,權重調整,負載均衡,等管理功能。 1. 安裝unzip apache-tomcat-7.0.42.zip -d /usr/local/
mv apache-tomcat-7.0.42 apache-tomcat-7.0.42-4000
cd /usr/local/apache-tomcat-7.0.42-4000
chmod -R +x *
wget http://code./mvn/releases/com/alibaba/dubbo-admin/2.5.3/dubbo-admin-2.5.3.war
unzip dubbo-admin-2.5.3.war -d /usr/local/zhanglin/logistics/dubbo-admin
2. 配置修改tomcat的端口,修改host節(jié)點 server.xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="dubbo-admin_access_log_4000." suffix=".txt" pattern="%t %h %l %u %r %s %b %I %D %{X-Cluster-Client-Ip}i" resolveHosts="false" />
<Context path="" docBase="/usr/local/zhanglin/logistics/dubbo-admin" debug="0" reloadable="false"/>
</Host>
dubbo.properties #vi /usr/local/zhanglin/logistics/dubbo-admin/webapps/ROOT/WEB-INF/dubbo.properties
vi /usr/local/zhanglin/logistics/dubbo-admin/WEB-INF/dubbo.properties
#dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.registry.address=zookeeper://172.20.32.211:2181?backup=172.20.32.143:2181,172.20.32.143:2182
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
3. 啟動./bin/startup.sh
4. 停止./bin/shutdown.sh
5. 訪問:(用戶:root,密碼:root 或 用戶:guest,密碼:guest) |
|