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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章