RocketMQ安装

安装jdk环境

yum install java-1.8.0-openjdk
java -version
which java  --> /usr/bin/java
-- 软连接
ls -l /usr/bin/java --> /usr/bin/java -> /etc/alternatives/java
ls -l /etc/alternatives/java --> 输出Java安装目录{JAVA_HOME}

配置jdk环境变量

export JAVA_HOME={JAVA_HOME}
export PATH=PATH:JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib

安装RocketMQ

http://rocketmq.apache.org/docs/quick-start/

安装maven

wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven
查找maven安装路径
查找包路径

rpm -qa|grep apache-maven

根据包路径查找安装目录

rpm -ql apache-maven-3.5.2-1.el7.noarch

在搜索结果中就有maven的安装目录。
配置文件路径
/etc/maven/settings.xml

你可能感兴趣的:(java,后端)