1 Nexus

1 安装

  • 前提
    jdk安装且配置环境变量
1.1 下载解压
# 创建目录
[root@gp6 soft]# mkdir nexus

# 进入目录
[root@gp6 soft]# cd nexus/

# 将文件上传至该目录下
[root@gp6 nexus]# rz

# 解压
[root@gp6 nexus]# tar -zxvf nexus-2.11.2-03-bundle.tar.gz 

# 解压后目录
[root@gp6 nexus]# ll
总用量 69144
drwxr-xr-x. 8 root root     4096 2月  13 2015 nexus-2.11.2-03
-rw-r--r--. 1 root root 70793720 8月  12 10:37 nexus-2.11.2-03-bundle.tar.gz
drwxr-xr-x. 3 root root     4096 2月  13 2015 sonatype-work

# 进入nexus目录
[root@gp6 nexus]# cd nexus-2.11.2-03/

# 配置端口和 work 目录信息(视具体情况修改,此处保留默认,未作修改)
[root@gp6 nexus-2.11.2-03]# vi ./conf/nexus.properties 
...
application-port=8081
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus

# Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF


# 编辑 nexus 脚本, 配置 RUN_AS_USER 参数(RUN_AS_USER=root)
[root@gp6 nexus-2.11.2-03]# vi ./bin/nexus
...
RUN_AS_USER=root
...

# 启动nexus(启动前,将端口开放)
[root@gp6 nexus-2.11.2-03]# ./bin/nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Starting Nexus OSS...
Started Nexus OSS.

# 查看启动状态
[root@gp6 nexus-2.11.2-03]# ./bin/nexus status
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Nexus OSS is running (3241).

2 配置

2.1 进入Nexus可视化页面
ip:8081/nexus

在这里插入图片描述

2.2 登录
默认账号: admin
密码: admin123
2.3 配置

在这里插入图片描述

2.3.1 修改用户邮箱与密码

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值