日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

dubbo管控台安装

發(fā)布時間:2024/9/21 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 dubbo管控台安装 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1.?jdk安裝

# ?cp installpkgs/jdk-7u67-linux-x64_tar_gz /usr/local

# ?tar -zxf jdk-7u67-linux-x64_tar_gz

# ?vi /etc/profile

export JAVA_HOME=/usr/local/jdk1.7.0_67

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

# source /etc/profile

# java -version

切換普通用戶有jdk

# vi /etc/bashrc

export JAVA_HOME=/usr/local/jdk1.7.0_67

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

# source /etc/bashrc

?

2.?zookeeper安裝

# su haoxr

$ cd ~

$ cp /installpkgs/zookeeper-3.4.6.tar.gz ?.

$ tar -zxvf zookeeper-3.4.6.tar.gz

$ cd zookeeper-3.4.6/

$ mkdir data

$ mkdir logs

$ cd conf

$ cp zoo_sample.cfg zoo.cfg

$ vi zoo.cfg

# The number of milliseconds of each tick

tickTime=2000

# The number of ticks that the initial

# synchronization phase can take

initLimit=10

# The number of ticks that can pass between

# sending a request and getting an acknowledgement

syncLimit=5

# the directory where the snapshot is stored.

# do not use /tmp for storage, /tmp here is just

# example sakes.

dataDir=/home/haoxr/zookeeper-3.4.6/data

dataLogDir=/home/haoxr/zookeeper-3.4.6/logs

# the port at which the clients will connect

clientPort=2181

# the maximum number of client connections.

# increase this if you need to handle more clients

#maxClientCnxns=60

#

# Be sure to read the maintenance section of the

# administrator guide before turning on autopurge.

#

# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance

#

# The number of snapshots to retain in dataDir

#autopurge.snapRetainCount=3

# Purge task interval in hours

# Set to "0" to disable auto purge feature

#autopurge.purgeInterval=1

server.1=srv-provider:2888:3888

$ cd ../data

$ vi myid

1

配置zookeeper環(huán)境變量

$ vi /home/haoxr/.bash_profile

export ZOOKEEPER_HOME=/home/haoxr/zookeeper-3.4.6

export PATH=$ZOOKEEPER_HOME/bin:$PATH

$ source /home/haoxr/.bash_profile

切回root用戶,添加dns域名解析

$ su root

Password:******

# vi /etc/hosts

192.169.213.129 srv-provider

# exit

$ cd zookeeper-3.4.6/bin/

$ zkServer.sh start

查看狀態(tài)

$ zkServer.sh status

設置zookeeper開機啟動

切換root用戶

# vi /etc/rc.local

su - haoxr -c '/home/haoxr/zookeeper-3.4.6/bin/zkServer.sh start'

?

3.?dubbo管控臺安裝

$ cp /installpkgs/apache-tomcat-7.0.41.tar.gz .

$ tar -zxvf apache-tomcat-7.0.41.tar.gz

$ mv apache-tomcat-7.0.41/ dubbo-admin-tomcat

$ cd dubbo-admin-tomcat/webapps

$ rm -rf *

$ unzip /installpkgs/dubbo-admin-2.5.3.war -d ROOT

$ vi ROOT/WEB-INF/dubbo.properties

dubbo.registry.address=zookeeper://192.168.43.130:2181

dubbo.admin.root.password=123456

dubbo.admin.guest.password=123456

?$ cd ../bin/

$ ./startup.sh

查看啟動日志

$ tail -f ../logs/catalina.out

關閉防火墻,切到root身份

立即生效

# service iptables stop ??

重啟永久生效

# chkconfig iptables off

?

轉載于:https://www.cnblogs.com/bloghxr/p/8153274.html

總結

以上是生活随笔為你收集整理的dubbo管控台安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。