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.