【CentOS7】开发环境配置

时间:2023-11-22 12:28:26

【CentOS7】开发环境配置

目录

=====================================================================

1、安装openjdk

2、配置域名

3、安装python

4、安装maven

=====================================================================

1、安装openjdk

下载地址:http://openjdk.java.net/install/

yum install java-1.8.-openjdk

2、配置域名

先在/etc/hostname配置想要的域名 consul

在/etc/hosts 配置ip和域名映射 192.168.0.101 consul

3、安装python

yum -y install epel-release
yum -y install python-pip

4、安装maven

# curl -O http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
# tar -zxvf apache-maven-3.6.-bin.tar.gz
# vim /etc/profile
MAVEN_HOME=/usr/local/apache-maven-3.6.
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
# source /etc/profile
# mvn -version
# cd /usr/local/apache-maven-3.6.
# mkdir repository
# chmod -R repository
# cd /usr/local/apache-maven-3.6./conf
# vim settings.xml
<localRepository>/usr/local/apache-maven-3.6./repository</localRepository>