zoukankan      html  css  js  c++  java
  • centos7搭建nexus maven私服

    一、安装jdk1.8环境

    参考: linux安装jdk以及tomcat

    二、下载安装包

    [root@localhost src]# wget https://sonatype-download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-3.31.1-01-unix.tar.gz

    如果下载不了,可以在迅雷里先下载下来,再上传到linux里

    三、解压

    [root@localhost src]# tar -zxvf nexus-3.31.1-01-unix.tar.gz -C /usr/local/

    建立软连接

    [root@localhost home]# ln -s /usr/local/nexus-3.31.1-01/bin/nexus /usr/local/bin/

    四、运行

    [root@localhost home]# nexus start
    WARNING: ************************************************************
    WARNING: Detected execution as "root" user.  This is NOT recommended!
    WARNING: ************************************************************
    Starting nexus
    [root@localhost home]# nexus status
    WARNING: ************************************************************
    WARNING: Detected execution as "root" user.  This is NOT recommended!
    WARNING: ************************************************************
    nexus is running.
    [root@localhost home]# 
    
    
    停止
    nexus is running.
    [root@localhost home]# nexus stop
    WARNING: ************************************************************
    WARNING: Detected execution as "root" user.  This is NOT recommended!
    WARNING: ************************************************************
    Shutting down nexus
    Stopped.
    [root@localhost home]# 
    
    
     

    五、浏览器访问8081

     六、初始登录

    查看admin的初始密码

    [root@localhost nexus3]# cat /usr/local/sonatype-work/nexus3/admin.password 

    输入用户:admin,以及查看到的密码,登录

     进入设置流程,首先设置登录密码

     是否允许匿名访问,这里选允许

    最后点击finish完成配置

  • 相关阅读:
    StringBuffer类的使用
    Android利用文本分割拼接开发一个花藤文字生成
    驻扎博客园,以后每天都有进步
    python turtle 例子 海归绘图
    常用的第三方模块 psutil url
    常用的第三方模块 chardet url
    常用的第三方模块 Pillow url
    常用的第三方模块 requests url
    crontab 详细用法 定时任务
    详解Python的装饰器
  • 原文地址:https://www.cnblogs.com/sky-cheng/p/14959945.html
Copyright © 2011-2022 走看看