linux 环境搭建 nexus 私服
来源:互联网 发布:武汉国企java招聘信息 编辑:程序博客网 时间:2024/06/07 14:34
1、前言
maven 使用咱们就不多说。那为什么要搭建私服呢?
1、假如我们不用我们的私服,我们项目依赖的jar更新时候都要去中央仓库里获取,慢!慢!一个团队都重复这样的工作何谈效率?
2、另外一点就是、方便我们自己团队的插件、组件管理。比如A小组使用B小组的组件、B小组会不断更新B开发的组件,A只管更新就ok,利于协作开发。
2、 nexus 私服搭建
2.1 nexus下载
http://www.sonatype.org/nexus/archived/#step2top
我使用的是Nexus 2.12.0-01版本的;
2.2 上传安装包
用xshell工具、连接到linux服务器
使用
rz
2.3 解压
tar -zxvf nexus-2.12.0-01-bundle.tar.gz[root@localhost nexus# lsnexus-2.12.0-01 nexus-2.12.0-01-bundle.tar.gz sonatype-work
nexus-2.12.0-01 是 nexus 核心文件; sonatype-work是用来存放jar包
2.4 修改启动用户
[root@localhost nexus]# cd nexus-2.12.0-01 [root@localhost nexus-2.12.0-01]# cd bin[root@localhost bin]# lsjsw nexus nexus.bat[root@localhost bin]# cp nexus nexus.bak[root@localhost bin]# vi nexus
将RUN_AS_USER修改为root,不推荐使用root。
保存之后,再次启动nexus,运行命令
[root@localhost bin]# ./nexus start [root@localhost bin]# ./nexus console****************************************WARNING - NOT RECOMMENDED TO RUN AS ROOT****************************************Running Nexus OSS...Nexus OSS is already running.
Nexus OSS is already running. 表示nexus运行成功;
默认端口8081
默认用户admin 密码 admin123
最后:
设置软连接
ls -s /usr/local/nexus/nexus-2.12.0-01/bin/nexus /etc/init.d/nexus
设置开机启动
chkconfig --add nexus
查看开机
chkconfig --list
阅读全文
0 0
- linux环境搭建nexus私服
- linux 环境搭建 nexus 私服
- Linux环境搭建Nexus
- Linux环境使用Nexus搭建Maven私服
- Linux 搭建nexus私服
- Linux 搭建 nexus 私服
- linux搭建nexus私服
- nexus私服linux搭建
- Linux环境下使用Nexus搭建maven私服
- Linux(Ubuntu12.04)环境的Nexus搭建
- Linux环境nexus私服搭建
- nexus私服linux搭建问题
- nexus私服linux搭建问题
- Linux 搭建 maven+Nexus私服
- Nexus 私服(Linux)搭建
- 搭建Maven私服,并配置Nexus环境
- Centos 环境搭建之Maven私服nexus
- 私服nexus的安装环境搭建
- 分布式一致性算法(一)一致性哈希算法(consistent hashing)
- 读书笔记--C陷阱与缺陷(四)
- 字符串按字典排序
- SSH端口转发
- HDU 2066-一个人的旅行(Dijkstra)
- linux 环境搭建 nexus 私服
- 递归
- mybatis分页插件配置
- 古文觀止卷九_捕蛇者說_柳宗元
- OpenCV检测圆并求出圆心与半径
- caffe目标检测踩坑记(三)
- 最大熵阈值分割法
- 使用IntelliJ IDEA编写自己的第一个java程序
- 学习Java小结