本文示例Tomcat版本:Tomcat 7.0
1、查看Tomcat性能狀態(簡潔版)
步驟一:打開Tomcat安裝目錄(假設是D:\Program Files\Apache Software Foundation\Tomcat 7.0 ) --> conf目錄 --> 打開 tomcat-users.xml文件,配置如下:
<?xml version='1.0' encoding='gbk'?>
<tomcat-users>
<!--
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="tomcat" password="tomcat" roles="manager-script"/>
<user username="tomcat" password="tomcat" roles="manager-jmx"/>
<user username="tomcat" password="tomcat" roles="manager-status"/>
-->
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
</tomcat-users>
Note:Tomcat7.0只可配置以上4種角色(role),分別是:
[1] manager-script : allows access to the HTML GUI and the status pages
[2] manager-script :allows access to the text interface and the status pages
[3] manager-jmx :allows access to the JMX proxy and the status pages
[4] manager-status :allows access to the status pages only
步驟二:打開 http://localhost:8080/manager/status,輸入上述配置的用戶名和密碼,進入status頁面,如下圖所示:
2、修改網址圖標
步驟:打開Tomcat安裝目錄(假設是D:\Program Files\Apache Software Foundation\Tomcat 7.0 ) -->webapps目錄 --> ROOT目錄 --> 替換favicon.ico圖標即可
Note:Tomcat首先會先從訪問的項目目錄下查看是否有favicon.icon圖標,如果沒有的話,會去webapps/ROOT目錄下查找favicon.icon圖標,如果這兩個地方都沒有的話,直接使用IE圖標。還需注意,替換完成後,必須清空瀏覽器緩存及歷史記錄,重啓服務器不一定會及時生效。
效果如圖所示:
本文地址:http://blog.csdn.net/chen_zw/article/details/18923761
Note:本文只是先挖個坑,稍後填上,敬請期待。。