Centos7安装nexus

1、下载 http://www.sonatype.org/nexus/archived/

2、nexus 名称 nexus-2.12.0-01-bundle.tar.gz ,上传到 /usr/local/java/nexus中。

3、解压  tar zxvf nexus-2.12.0-01-bundle.tar.gz 

4、进入 /usr/local/java/nexus/nexus-2.12.0-01/bin 中,启动nexus;

[root@localhost bin]# ./nexus
Usage: ./nexus { console | start | stop | restart | status | dump }
[root@localhost bin]# ./nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.

出现警告,启动失败;

这是要求,配置环境变量;具体步骤如下:

4.1    编辑环境变量

vi /etc/profile

4.2    在最后添加 

########################################################
####################nexus###############################
export RUN_AS_USER=root

4.3  配置环境变量生效

source /etc/profile 

4.4  重新运行 

[root@localhost bin]# source /etc/profile  
[root@localhost bin]# ./nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Starting Nexus OSS...
Started Nexus OSS.


5、启动8081端口

 

firewall-cmd   --add-port=8081/tcp

6、访问 http://192.168.1.250:8081/nexus/


首先登陆 nexus,默认的用户名及密码为 admin 和 admin123





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值