[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.
[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
13 user 14 id:admin 15 firstname:Administrator 16 lastName:User 17 password:f865b53623b121fd34ee5426c792e5c33af8c227 18 status:active 19 email:changeme@yourcompany.com 20 user
[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.
網址列輸入:http://你的私服ip位址:8081/nexus/
登入輸入使用者名稱admin,密碼admin123,測試修改成功
以上是Nexus私服輕鬆找回帳戶的詳細內容。更多資訊請關注PHP中文網其他相關文章!