CentOS7.0 安装nexus-3.0.0

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了

 CentOS7.0 安装nexus-3.0.0_第1张图片



你可能感兴趣的:(maven,nexus)