從nexus官網下載Nexus Repository Manager OSS 2.x的安裝包:nexus-2.14.1-01-bundle.tar.gz,3.x版本需要jdk8及以上
解壓
tar xvf nexus-2.14.1-01-bundle.tar.gz -C /usr/java配置環境變量vi /etc/PRofile追加# maven nexus confexport RUN_AS_USER=root使配置立即生效source /etc/profile啟動nexuscd /usr/java/nexus-2.14.2-01/bin./nexus start如果不配置環境變量,啟動會報錯****************************************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.配置了環境變量,啟動時提示****************************************WARNING - NOT RECOMMENDED TO RUN AS ROOT****************************************啟動完成后,瀏覽器訪問http://192.168.25.130:8081/nexus/nexus常用命令
./nexus start./nexus stop./nexus restart./nexus status倉庫說明
Public Repositories:公共倉庫組,包含了特定的倉庫3rd party:第三方組件倉庫Central:中央倉庫Releases:發布版本倉庫
新聞熱點
疑難解答