首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

施用Nexus搭建私有仓库

2012-11-25 
使用Nexus搭建私有仓库使用Nexus搭建私有仓库:1. 下载 nexus-2.2-01-bundle.tar.gz 地址 http://www.sonat

使用Nexus搭建私有仓库
使用Nexus搭建私有仓库:

1. 下载 nexus-2.2-01-bundle.tar.gz 地址 http://www.sonatype.org/nexus/go

2. 解压缩到:D:\mynexus\  目录下,此时D:\mynexus\ 下有两个文件夹:
D:\mynexus\nexus-2.2-01
D:\mynexus\sonatype-work

3.设置系统环境变量
在系统环境变量path追加:
;D:\mynexus\nexus-2.2-01\bin

4.修改wrapper.conf文件:
修改D:\mynexus\nexus-2.2-01\bin\jsw\conf\wrapper.con 中关于JVM的配置。
如下:
# Set the JVM executable
# (modify this to absolute path if you need a Java that is not on the OS path)
wrapper.java.command=D:\Program Files\Java\jdk1.7.0_05\bin\java

5.以管理员身份进入命令行

开始-->附件 右键“命令提示行” “属性”—— “快捷方式” “高级” 勾选“以管理员身份运行”

6.进入命令行
执行命令
nexus install   装载nexus服务,可在系统服务中看到该服务。
nexus start     启动nexus服务

7、http://localhost:8081/nexus 访问
右上角 log in
默认用户 admin
默认密码 admin123

8、默认启动的端口是8081,可以在 D:\mynexus\nexus-2.2-01\conf\nexus.properties
文件中进行修改,如修改为 8088端口。

# Jetty section
application-port=8088
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus[/size][/size]

热点排行