检查位数
查看防火墙
关闭防火墙systemctl stop firewalld.service
开机禁用防火墙:systemctl disable firewalld.service
一、jdk配置
1.安装
rpm -ivh jdk-8u251-linux-x64.rpm
2.编辑 /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_251-amd64
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
二、maven配置
1.解压
tar -xvf apache-maven-3.6.0-bin.tar
2.配置
export MAVEN_HOME=/usr/local/apache-maven-3.6.0
export PATH=$PATH:$MAVEN_HOME/bin
完整profile
export JAVA_HOME=/usr/java/jdk1.8.0_211-amd64
export MAVEN_HOME=/usr/local/apache-maven-3.6.0
export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin
3.安装unzip
yum install -y unzip zip