CentOS7.0 安装nexus-3.0.0

Nexus 3.0 安装与配置
本文详细介绍了如何下载并安装 Nexus 3.0.0 版本,包括解压缩安装包、启动 Nexus 服务以及配置防火墙等步骤。此外,还提供了远程访问时所需的防火墙配置示例。

1、下载官网的免费版的nexus3.0.0

http://www.sonatype.com/download-oss-sonatype

2、解压安装

# tar -zxvf neuxs-3.0.0-3.tar.gz -C /opt/usr/local

3、启动Nexus

# cd /opt/usr/local/neuxs-3.0.0-3/bin

# ./nexus

Usage: ./nexus { console | start | stop | restart | status | dump }

# ./nexus start    #启动

# ./nexus stop     #禁止


如果是远程访问需要配置防火墙

设置防火墙

新建文件 /usr/lib/firewalld/services/nexus.xml

<?xml version="1.0" encoding="utf-8"?>
<service>
        <short>Nexus</short>
        <description>Nexus OSS</description>
        <portprotocol="tcp"port="8081"/>
</service>

# firewall-cmd --permanent --add-service=nexus


可能会报错:FirewallD is not running

# systemctl start firewalld.service  (启动firewall)

重启防火墙

# firewall-cmd --reload


访问:http://localhost:8081/

注:nexus-3.0 后地址栏后面不需要加nexus了

 163117_xZ1i_2358326.png



转载于:https://my.oschina.net/u/2358326/blog/670979

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值