歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

CentOS6上安裝Nexus私服

CentOS6上安裝Nexus私服

CentOS6上安裝Nexus私服


1.下載nexus壓縮包:https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.0-01-bundle.zip2.將壓縮包移動至/usr/nexus目錄3.解壓壓縮包# unzipnexus-2.14.0-01-bundle.zip解壓出會有nexus-2.14.0-01 sonatype-work兩個文件夾4.進入啟動目錄#cd nexus-2.6.0-05/bin/5.啟動nexus# ./nexus start查看nexus命令: ./nexus7.這時候可能會提示****************************************
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,臨時配置

在命令行下輸入:

export RUN_AS_USER=root

然後執行,就不會再提示了
./nexus start

也可以在系統裡面永久配置vi /etc/profile 加入export RUN_AS_USER=root8.啟動之後查看日志# 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.注參考網址centos網絡配置詳解:http://blog.chinaunix.net/uid-30009517-id-4599066.htmlnexus私服linux搭建問題centos基礎搭建nexus私服http://www.cnblogs.com/dingyingsi/p/3776557.html

http://blog.youxey.com/archives/293.htmlLinux/CentOS安裝maven私有倉庫nexus

http://blog.csdn.net/shandian534/article/details/8987349 Nexus 安裝與配http://snowolf.iteye.com/blog/1605811 Maven零散筆記——配置Nexushttp://www.blogjava.net/javalinjx/archive/2013/08/21/403110.html linux系統之上搭建maven 之nexus服務篇http://wenku.baidu.com/view/a9a0618acc22bcd126ff0c4a.html Nexus入門指南(圖文)

http://xxxxxx/Linuxjc/1184807.html TechArticle

Copyright © Linux教程網 All Rights Reserved