- 解除注釋Tomcat/conf目錄下的
tomcat-users.xml
文件下的<tomcat-users> </tomcat-users>
字段 - 進(jìn)入manager界面之后,顯示的是403 Access Denied
解決辦法:
<pre>
在conf/tomcat-users.xml文件中看到這么一段話(huà):
NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app,you must define such a user - the username and password are arbitrary.
也就是說(shuō)谦秧,為了考慮安全越败,tomcat默認(rèn)還是沒(méi)有manager-gui的管理權(quán)限的,如果想要使用manager的話(huà),需要自行加入管理權(quán)限(角色)。
</pre>
綜上:
需要加一個(gè)這樣的權(quán)限(角色) :
<role rolename="manager-gui"/>
然后再加到需要的用戶(hù)名中去:
<user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/>
給個(gè)github follow me的鏈接,上面有很多初學(xué)者可供學(xué)習(xí)的資料,項(xiàng)目.
<a>https://github.com/SuperZee</a>