八、Maven安装配置
1. 下载 wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
2. 解压 tar xvf apache-maven-3.3.9-bin.tar.gz -C /usr/local/
3.配置环境变量
vim /etc/profile
export M2_HOME=/usr/local/apache-maven-3.3.9
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
4.使环境变量生效
source /etc/profile
5.验证是否成功
mvn -v
九、zookeeper安装配置
1.下载 wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz
2.解压 tar -zxvf zookeeper-3.3.6.tar.gz -C /usr/local/
3.进入conf目录。
cd /usr/local/zookeeper-3.3.6/conf
cp zoo_sample.cfg zoo.cfg
4.修改zoo.cfg
vim zoo.cfg
5.配置环境变量 vim /etc/profile
export ZOOKEEPER_INSTALL=/opt/deploy/zookeeper-3.3.6
export PATH=$PATH:$ZOOKEEPER_INSTALL/bin
6.启动服务 ./zkServer.sh start
7.验证是否成功 ./zkServer.sh status