查看系统版本内核:
cat /etc/redhat-release
1,安装maven
cd /usr/local/
wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar -xf apache-maven-3.6.3-bin.tar.gz -C /usr/local/
vim /etc/profile
//首先进入的command模式,输入i进入编辑模式 最下方加入新的一行export PATH=$PATH:/usr/local/maven3.6/bin //然后esc, 在页面中输入:wq用于保存文件 保存退出后在command命令行中输入source /etc/profile
2,安装JDK1.8
yum install java-1.8.0-openjdk* -y
查看maven是否安装成功:
[root@VM-20-11-centos /]# mvn -v Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/maven3.6 Java version: 1.8.0_312, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.18.0-348.7.1.el8_5.x86_64", arch: "amd64", family: "unix" [root@VM-20-11-centos /]# #查看Java的安装目录 [root@VM-20-11-centos /]# whereis java java: /usr/bin/java /usr/lib/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz #进入maven安装目录,添加阿里云的仓库镜像 [root@VM-20-11-centos /]# cd /usr/local/maven3.6/conf [root@VM-20-11-centos conf]# vi settings.xml
在 mirrors节点下添加子节点:
<mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
Mysql8 安装
https://www.cnblogs.com/ieinstein/p/15401620.html