Step 4 for the Nexus private server to forget the user name and password, step 4 for the nexus Server

Source: Internet
Author: User

Step 4 for the Nexus private server to forget the user name and password, step 4 for the nexus Server
1. Stop the nexus service.

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

 

2. Go to the directory and modify the configuration file.

[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

 

Replace the <password> </password> password in the user configuration. The default password is 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. Restart the nexus service.

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

4. test whether the modification is successful

Enter http: // your private server IP Address: 8081/nexus/in the address bar/

Log on and enter the username admin and password admin123. The modification is successful.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.