yum install java -y yum install git -y java -version git version 测试是否安装成功
将git证书配置到github
git config --global user.name "qukaige" git config --global user.email "qukaige@163.com" ssh-keygen -t rsa -C "quakige@163.com" 一直回车 Your identification has been saved in /root/.ssh/id_rsa. 公钥地址 Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 4d:09:6f:d5:35:2d:43:9a:8c:2a:d4:d1:33:54:74:fb 18800022773@163.com The key's randomart image is: +--[ RSA 2048]----+ | oo.o+oooo| | . ++= ++.o| | . . *o+ .o | | . = . | | . S . E| | . | | | | | | | +-----------------+
进入github
验证是否连接成功
ssh git@github.com
以上就配置成功了
maven 去官网下载
在linux 服务中
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.zip
下载完成解压缩
unzip apache-maven-3.6.2-bin.zip
配置mvn环境变量
vim /etc/profile
最底下加入2行代码, 请对应自己maven解压目录
export MAVEN_HOME=/root/maven/apache-maven-3.6.2 export PATH=$MAVEN_HOME/bin:$PATH
:wq 保存 刷新profile 文件
. /etc/profile
验证是否安装成功
mvn -version
[root@localhost apache-maven-3.6.2]# mvn -version Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T11:06:16-04:00) Maven home: /root/maven/apache-maven-3.6.2 Java version: 1.8.0_151, vendor: Oracle Corporation, runtime: /usr/java/jdk1.8.0_151/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-514.6.1.el7.x86_64", arch: "amd64", family: "unix"
maven 就安装成功了