Nexus私服輕鬆找回賬戶
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
替換用戶配置中的密碼,初始化為默認密碼admin123
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,測試修改成功
TAG:Linux資訊速推 |