centos7搭建nexus3

centos7搭建nexus3

在centos7上搭建nexus3 私服

下载地址:http://download.sonatype.com/nexus/3/nexus-3.7.1-02-unix.tar.gz
(官网下载是真滴慢,我用迅雷下载了一晚上。放在百度云上,方便下载)

链接:https://pan.baidu.com/s/1nR3ZgOEJzfi72rg9PgaPmQ 提取码:dpfm

如果网速可以直接在服务器上使用wget命令即可:
wget http://download.sonatype.com/nexus/3/nexus-3.7.1-02-unix.tar.gz


安装步骤

centos7、前提已经安装JDK

  • 将下载好的nexus-3.7.1-02-unix.tar.gz 到服务器,然后进行解压

    第一步:解压

    tar -zxvf nexus-3.7.1-02-unix.tar.gz
    

    第二步:配置环境变量
    将nexus的bin配置到环境变量中

    # 修改profile
    vim /etc/profile
    # 在配置文件的末尾添加环境变量信息
    export NEXUS_HOME=/home/soft/nexus-3.7.1-02
    export PATH=$PATH:$NEXUS_HOME/bin
    

    退出后进行保存,让source生效。

     source /etc/profile
    

    其他相关的命令

    //启动
    nexus start
    //停止
    nexus stop 
    //重启
    nexus restart 
    //查看状态
    nexus status
    

    可以在etc下面的默认文件下修改默认端口。nexus默认端口是8081

       /home/soft/nexus-3.7.1-02/etc
      [root@uzong etc]# vim nexus-default.properties 
      [root@uzong etc]# pwd
      /home/soft/nexus-3.7.1-02/etc
    

    例如修改8099: http://182.61.136.109:8099/

    默认账号密码:admin/admin123
    然后记得修改密码;内网则不需要


后记:nexus一般不搭建在公网上。都是在公司内网。

发布了274 篇原创文章 · 获赞 119 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/qq_31156277/article/details/103254175