centos8下maven私服搭建(nexus-3.13)

1、安装Maven
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
tar -zxvf apache-maven-3.5.4-bin.tar.gz
mv apache-maven-3.5.4 /usr/local
vim /etc/profile
添加到文件尾部:
MAVEN_HOME=/usr/local/apache-maven-3.5.4
export MAVEN_HOME
source /etc/profile
mvn -v
centos8下maven私服搭建(nexus-3.13)
centos8下maven私服搭建(nexus-3.13)

再次输入:mvn -v
centos8下maven私服搭建(nexus-3.13)

2、安装nexus
wget --no-check-certificate https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.13.0-01-unix.tar.gz 或者https://www.zhinengx.cn/store/thumbs/2018/0726/nexus-3.13.0-01-unix.tar.gz
网络下载有点慢。也可以下载完上传到 centos上。
tar -zxvf nexus-3.13.0-01-unix.tar.gz
mv nexus-3.13.0-01 /usr/local
cd /usr/local/nexus-3.13.0-01/bin
./nexus start
浏览器:http://192.168.41.128:8081 访问
centos8下maven私服搭建(nexus-3.13)

用户密码:admin admin123
centos8下maven私服搭建(nexus-3.13)

centos8下maven私服搭建(nexus-3.13)

3、其他设置
sudo ln -s /usr/local/nexus-3.13.0-01/bin/nexus /etc/init.d/nexus
#查看nexus服务状态、启动服务、停止服务等
service nexus status/start/stop
#设置为开机自启动/关闭等
chkconfig nexus on/off

猜你喜欢

转载自blog.51cto.com/332532/2459589