Ubuntu系统下Nexus安装

来源:互联网 发布:web excel源码 编辑:程序博客网 时间:2024/06/05 05:25

1.下载nexushttp://www.sonatype.org/nexus/go

可选择下载tgz包或者zip包,这里选择tgz包。

2.将下载包解压

tar -zxvf nexus-2.12.1-01-bundle.tar.gz

3.移动压缩包

sudo mv nexus-2.12.1-01 /usr/local/nexus

4.配置

vim /usr/local/nexus/conf/nexus.properties

application-host项为工作主机,将X.X.X.X替换为你自己的IP地址。

application-host=192.168.10.12
nexus-work工作项为nexus的工作目录,可根据需要进行设置。其中${bundleBasedir}项为nexus的根目录。

nexus-work=${bundleBasedir}/../sonatype-work/nexus

5.启动

cd /usr/local/nexus/bin./nexus start
6.若启动成功,Nexus会开放8081端口。可通过以下URL访问Nexus主页。
http://${主机地址}:8081/nexus

默认管理员用户密码为admin/admin123。


注意事项:

1.可以通过以下命令实时查看Nexus的运行日志

tail -f usr/local/nexus/logs/wrapper.log

0 0