虛擬機器之CentOS6上安裝Nexus私服
阿新 • • 發佈:2019-02-06
2.將壓縮包移動至/usr/nexus目錄
3.解壓壓縮包
解壓出會有nexus-2.14.0-01 sonatype-work兩個資料夾
4.進入啟動目錄
5.啟動nexus
檢視nexus命令: ./nexus
7.這時候可能會提示 ****************************************
WARNING – NOT RECOMMENDED TO RUN AS ROOT
**************************************** If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
大概意思就是要在環境配置export RUN_AS_USER=root,臨時配置
發現報錯
這個錯誤其實就是/etc/hosts配置的主機名和/etc/networks檔案中HOSTNAME不一致導致的 修改如下:
重啟nexus服務 9.主機訪問http://10.1.120.139:8081/nexus/#welcome,成功!
10.注參考網址
# unzip nexus-2.14.0-01-bundle.zip |
# cd nexus-2.6.0-05/bin/ |
# ./nexus start |
7.這時候可能會提示 ****************************************
WARNING – NOT RECOMMENDED TO RUN AS ROOT
**************************************** If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
在命令列下輸入:
export RUN_AS_USER=root
然後執行,就不會再提示了
./nexus start
# vim /usr/nexus/nexus-2.14.0-01/logs/wrapper.log |
這個錯誤其實就是/etc/hosts配置的主機名和/etc/networks檔案中HOSTNAME不一致導致的 修改如下:
重啟nexus服務 9.主機訪問http://10.1.120.139:8081/nexus/#welcome,成功!
10.注參考網址
http://blog.youxey.com/archives/293.html Linux/CentOS安裝maven私有倉庫nexus
http://blog.csdn.net/shandian534/article/details/8987349 Nexus 安裝與配 http://snowolf.iteye.com/blog/1605811 Maven零散筆記——配置Nexus http://www.blogjava.net/javalinjx/archive/2013/08/21/403110.html linux系統之上搭建maven 之nexus服務篇 http://wenku.baidu.com/view/a9a0618acc22bcd126ff0c4a.html Nexus入門指南(圖文)