jdk安装
tar -zxvf jdk-8u221-linux-x64.tar.gz -C /usr/local/
vim /etc/profile
#/usr/local/jdk1.8.0_221
#java environment
export JAVA_HOME=/usr/local/jdk1.8.0_221
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin
source /etc/profile
验证
maven安装
unzip apache-maven-3.6.3-bin.zip -d /usr/local/
vim /etc/profile
export PATH=/usr/local/apache-maven-3.6.3/bin:$PATH
source /etc/profile
验证:
zookeeper安装
tar -zxvf apache-zookeeper-3.5.6-bin.tar.gz -C /usr/local/
vim /etc/profile
export PATH=/usr/local/apache-zookeeper-3.5.6-bin/bin:$PATH
source /etc/profile
创建存储data目录
mkdir -p /usr/local/apache-zookeeper-3.5.6-bin/data
修改配置文件 vim conf/zoo.cnf
如果启动失败,端口被占用了。
admin.serverPort=8081
启动zookeeper
zkServer.sh start
查看状态
zkServer.sh status
nodejs安装
tar -xvf node-v14.17.3-linux-x64.tar.xz -C /usr/local/
vim /etc/profile
export PATH=/usr/local/nodejs/bin:$PATH
source /etc/profile
验证:node -v
创建缓存
mkdir node_global
mkdir node_cache
npm config set prefix "node_global"
npm config set cache "node_cache"
# 设置npm为淘宝镜像
npm config set registry https://registry.npm.taobao.org
# 或者安装cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org
# 查看镜像
npm config get registry
dubbo管理端安装
主备tomcat和duboo管理的war包
tar -zxvf apache-tomcat-8.5.37.tar.gz -C /usr/local/src/
unzip dubbo-admin-2.6.0.war -d ROOT/
#修改配置文件
vim webapps/ROOT/WEB-INF/dubbo.properties
启动tomcat
访问http://localhost:8080