• Nexus私服忘记用户名密码解决4步走


    1  停止nexus服务

    [root@node001 bin]# /usr/local/nexus/nexus-2.14.5-02/bin/nexus stop
    ****************************************
    WARNING - NOT RECOMMENDED TO RUN AS ROOT
    ****************************************
    Stopping Nexus OSS...
    Stopped Nexus OSS.

    2  进入目录,修改配置文件

    [root@node001 ~]# cd /usr/local/nexus/sonatype-work/nexus/conf
    [root@node001 conf]# cp security.xml security.xml.backup
    [root@node001 conf]# vi security.xml

    替换用户配置中<password></password>的密码,初始化为默认密码admin123

    13 <user>

    14 <id>admin</id>

    15 <firstName>Administrator</firstName>

    16 <lastName>User</lastName>

    17 <password>f865b53623b121fd34ee5426c792e5c33af8c227</password>

    18 <status>active</status>

    19 <email>changeme@yourcompany.com</email>

    20 </user>

    3、重新启动nexus服务

    [root@node001 bin]# /usr/local/nexus/nexus-2.14.5-02/bin/nexus  start
    ****************************************
    WARNING - NOT RECOMMENDED TO RUN AS ROOT
    ****************************************
    Starting Nexus OSS...
    Started Nexus OSS.

    4、测试是否修改成功

    地址栏输入:http://你的私服ip地址:8081/nexus/

    登录输入用户名admin,密码admin123,测试修改成功

  • 相关阅读:
    go http的三种实现---2
    go http的三种实现---1
    go语言递归创建目录
    Golang中的正则表达式
    go语言strings包
    go语言获取字符串元素的个数
    VBA在Excel中的应用(三)
    ASP 转换HTML特殊字符
    ASP汉字转拼音函数的方法
    用ASP实现文件下载
  • 原文地址:https://www.cnblogs.com/lxcy/p/8182836.html
Copyright © 2020-2023  润新知