[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[备忘]linux下nexus安装

上一篇:[备忘]iptables添加ip
下一篇:[备忘]linux下安装gitlab

添加日期:2017/5/2 10:30:04 快速返回   返回列表 阅读1993次
参考:http://www.linuxidc.com/Linux/2016-08/134617.htm
---------------------------
nexus的官网下载地址是:http://www.sonatype.org/nexus/go
找个最新版本地址



wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.11.2-03-bundle.tar.gz
mkdir nexus
tar -xzvf nexus-2.11.2-03-bundle.tar.gz -C nexus
cd nexus
ls
  nexus-2.11.2-03   sonatype-work



(2)修改配置文件
cd nexus-2.11.2-03/conf
vi nexus.properties
 #Jetty section
 application-port=8081      ##修改Jetty端口号
 # nexus section
 nexus-work=${bundleBasedir}/../sonatype-work/nexus  

保存以上修改
 
(3)配置用户
# vi /usr/local/nexus/nexus-2.11.2-03/bin/nexus
#RUN_AS_USER=
RUN_AS_USER=root
保存以上修改

若有设置防火墙,需前往修改防火墙配置并重启防火墙,此处略过......

(4)启动nexus

# /usr/local/nexus/nexus-2.11.2-03/bin/nexus start

****************************************

WARNING - NOT RECOMMENDED TO RUN AS ROOT

****************************************

Starting Nexus OSS...

Started Nexus OSS.

在浏览器打开:http://ip:8081/nexus,登录:用户名admin  默认密码:admin123

---------------
然后修改maven配置文件,把私服写进去即可。
 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved