Centos7安裝maven3.5.0和git
版權宣告:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/u010046908/article/details/79553293
1、安裝maven
wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz
tar -zxvf apache-maven-3.5.0-bin.tar.gz
vi ~/.bashrc
export MAVEN_HOME=/usr/local/apache-maven-3.5.0
export PATH=$PATH:$MAVEN_HOME/bin
source ~/.bashrc
2、檢視maven版本
mvn -version
Apache Maven 3.5.0 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /usr/local/apache-maven-3.5.0
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-514.el7.x86_64", arch: "amd64", family: "unix"
3.修改maven的進行
cd /usr/local/apache-maven-3.5.0/conf
vi settings.xml
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
4、安裝git
4.1 安裝git
yum install -y git
4.2檢視版本
git --version
相關文章
- windows和CentOS7安裝wkhtmltopdfWindowsCentOSHTML
- Git server安裝和配置GitServer
- git安裝及配置教程 windows windows上git的安裝和使用GitWindows
- clickhouse for centos7安裝和使用初探CentOS
- CentOS7上安裝和使用DockerCentOSDocker
- centos7 解除安裝和重新安裝yumCentOS
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- [轉載] centos7 安裝和配置vncserverCentOSVNCServer
- Centos7安裝安裝部署dockerCentOSDocker
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- Git-TortoiseGit的安裝和配置Git
- git bash的安裝和配置教程Git
- 安裝GitGit
- Git安裝Git
- 02 安裝git、安裝TortoiseGitGit
- 安裝centos7最小化安裝CentOS
- centos7上keepalived的安裝和配置CentOS
- CentOS7編譯和安裝GCC7.5CentOS編譯GC
- centos7 安裝redis和redis擴充套件CentOSRedis套件
- Mysql安裝和遠端登入--Centos7MySqlCentOS
- CentOS7 安裝 memcacheCentOS
- CentOS7 安裝 dockerCentOSDocker
- CentOS7 安裝 MySQLCentOSMySql
- CentOS7安裝RedisCentOSRedis
- Centos7 安裝ffmpegCentOS
- centos7安裝protobufCentOS
- 4.1 CentOS7安裝CentOS
- CentOS7 安裝NginxCentOSNginx
- centos7 安裝pipCentOS
- Centos7安裝RabbitMQCentOSMQ
- centos7安裝dockerCentOSDocker
- centos7安裝iptablesCentOS
- CentOS7安裝xrdpCentOS
- centos7 安裝rocketmqCentOSMQ
- centos7 安裝 rcloneCentOS
- centos7安裝mysqlCentOSMySql
- Centos7 安裝 NginxCentOSNginx
- centos7安裝nginxCentOSNginx