1. goto the directory of jenkins. for example my installation is in D:\Program Files (x86)\Jenkins. 

find config.xml and open it and change root useSecurity -> false.

windows forget jenkins password.

2. open cmd and cd to install directory.

use command to restart jenkins.

net stop jenkins

net start jenkins 

相关文章: