部署maven
1,官网下载 maven
http://maven.apache.org/download.cgi
2,解压安装
tar zxvf apache-maven-3.6.0-bin.tar.gz
mv apache-maven-3.6.0 /usr/local/maven3.6
3,修改环境变量
vim /etc/profile
#maven
MAVEN_HOME=/usr/local/maven3.5
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
source /etc/profile
4,检查JAVA,JRE 是否安装
yum install -y java
vim /etc/profile
source /etc/profile
5,检查maven是否成功安装
mvn -v
部署nexus
1,下载nexus
2,解压安装
tar zxvf nexus-3.14.0-04-unix.tar.gz -C /usr/local
mv nexus-3.14.0-04 nexus
cd /usr/local/nexus/bin/
3,修改配置
vim /usr/local/nexus-3.14.0-04/etc/nexus-default.properties
4,启动
bin目录下,root用户
vim nexus ====>run_as_user='root'
./nexus start
5.登陆
http://IP:端口/
用户名/密码: admin/admin123