Linux (Ubuntu)安裝nexus,搭建maven私有服務器


 下載 nexus oos(開源版)https://www.sonatype.com/download-oss-sonatype

2 將下載的壓縮包上傳到/opt/nexus/文件夾下面

3 解壓文件

sudo tar -zxvf nexus-3.13.0-01-unix.tar.gz

解壓之后出現兩個文件夾:

nexus-3.13.0-01/

sonatype-work/

nexus-3.13.0-01存儲nexus核心文件以及啟動文件夾

sonatype-work 可以存放maven下載jar包,和啟動時候的log文件

4 啟動nexus

nexus默認端口號8081,nexus3可以在nexus-3.13.0-01/etc下面的nexus-default.properties文件修改

默認情況下,不建議以root用戶運行Nexus,如果跳過警告可以修改配置文件:nexus-3.13.0-01/bin下面的nexus文件

啟動:切換到nexus-3.13.0-01/bin目錄下,

./nexus start

檢查是否啟動:

查看進程:ps -ef |grep nexus

 

注:

sudo ./nexus start: 在后台啟動Nexus服務

sudo ./nexus status:查看Nexus運行狀態
sudo ./nexus stop: 停止后台的Nexus服務
sudo./nexus restart: 重新啟動后台的Nexus服務

5 訪問網頁

http://ip地址:8081     (如果出現404,就訪問http://IP地址:8081/nexus)

默認用戶名和密碼:admin/admin123

 

 

 

參考:

https://blog.csdn.net/xiaoxiangzi520/article/details/80520412
https://www.cnblogs.com/dingyingsi/p/3776560.html
https://www.cnblogs.com/muzi1994/p/6026144.html

https://blog.csdn.net/dengsilinming/article/details/17635191
https://blog.csdn.net/pucao_cug/article/details/64925157

 

https://blog.csdn.net/chenfei2341/article/details/80431700
http://shiyanjun.cn/archives/1768.html
https://www.jianshu.com/p/9740778b154f

https://www.cnblogs.com/sellsa/p/8108052.html

https://www.cnblogs.com/kevingrace/p/6201984.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM