“Nexus”的版本间的差异
来自Ubuntu中文
小 |
小 (→安装 openjdk1.8) |
||
第12行: | 第12行: | ||
= 安装 = | = 安装 = | ||
== 安装 openjdk1.8 == | == 安装 openjdk1.8 == | ||
+ | apt-get install software-properties-common | ||
+ | add-apt-repository ppa:openjdk-r/ppa | ||
+ | apt-get update | ||
+ | apt-get install openjdk-8-jdk | ||
+ | update-alternatives --config java | ||
+ | update-alternatives --config javac | ||
+ | == 安装 nexus == | ||
+ | tar xzvf nexus-3.0.0-03-unix.tar.gz | ||
+ | mv nexus-3.0.0-03 /usr/local/nexus | ||
+ | ln -s /usr/local/nexus/bin/nexus /etc/init.d/nexus | ||
+ | update-rc.d nexus defaults | ||
+ | /etc/init.d/nexus start | ||
+ | == 打开 nexus == | ||
+ | 访问 http://x.x.x.x:8081/ | ||
+ | |||
+ | 默认用户名 : admin 密码:admin123 | ||
= 使用 = | = 使用 = |
2016年4月22日 (五) 18:01的版本
搭建一个私有的maven仓库,同时支持缓存和代理。
说明
下载地址:
http://www.sonatype.com/download-oss-sonatype
选择
nexus-3.0.0-03-unix.tar.gz
下载
安装
安装 openjdk1.8
apt-get install software-properties-common add-apt-repository ppa:openjdk-r/ppa apt-get update apt-get install openjdk-8-jdk update-alternatives --config java update-alternatives --config javac
安装 nexus
tar xzvf nexus-3.0.0-03-unix.tar.gz mv nexus-3.0.0-03 /usr/local/nexus ln -s /usr/local/nexus/bin/nexus /etc/init.d/nexus update-rc.d nexus defaults /etc/init.d/nexus start
打开 nexus
默认用户名 : admin 密码:admin123