日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

Setting up Initial Tomcat Administration

系統 2676 0
The source : http://www.netadmintools.com/art340.html

作者寫的夠清楚了,偶就不多說了。^_^

There are a couple web-based administration tools that come with Tomcat, but you have to set up the admin and manager access first. This is done by adding a line to tomcat-users.xml:

            [root@srv-1 conf]# 
            
              pwd
            
            
/opt/tomcat/conf
[root@srv-1 conf]# vi tomcat-users.xml

Add the line with admin,manager in it:

            <?xml version='1.0' encoding='utf-8'?>
            
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user name="ad" password="pw" roles="admin,manager" />
</tomcat-users>

Of course, pick a better name and password. :) Note that the paths in this article are based on the Tomcat install we did in this article . You will need to restart Tomcat for the changes to take effect:

            [root@srv-1 bin]# 
            
              pwd
            
            
/opt/tomcat/bin
[root@srv-1 bin]# ./shutdown.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME: /opt/j2sdk
[root@srv-1 bin]# ./startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME: /opt/j2sdk
[root@srv-1 bin]#

When we browse to http://srv-1:8080/manager/html , we can log on:



Here is the manager app:



If we browse to http://srv-1:8080/admin/ , we get another logon screen:



From the admin app, we can administer roles and users, as well as do other tasks:

Setting up Initial Tomcat Administration


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。?!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 淮安市| 旬阳县| 长武县| 南木林县| 张家界市| 西贡区| 迁安市| 麻阳| 丹巴县| 定南县| 墨江| 洛阳市| 宁化县| 盈江县| 宜黄县| 吴堡县| 库伦旗| 额敏县| 旬阳县| 左权县| 平南县| 泸西县| 佛学| 资兴市| 防城港市| 赤峰市| 霍州市| 外汇| 永定县| 上杭县| 澄江县| 布尔津县| 淮北市| 静宁县| 忻城县| 蓝山县| 洮南市| 调兵山市| 简阳市| 昌邑市| 廊坊市|