亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Setting up Initial Tomcat Administration

系統(tǒng) 2509 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


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

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

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 中文字幕在线观看国产 | 国产免费久久精品99久久 | 日韩国产中文字幕 | 国产美女a做受大片免费 | 国产性tv国产精品 | 国产小视频在线观看免费 | 极品粉嫩粉嫩福利视频在线 | 五月激情综合婷婷 | 欧美白人极品性喷潮 | 成人看的一级毛片 | 亚洲国产精品久久久久网站 | 国产或人精品日本亚洲77美色 | 精品欧美在线 | 四虎影视永久地址www成人 | 97se狠狠狠狠狼亚洲综合网 | 国产成人精品久久 | 日本爱爱片 | 成人精品一区二区三区校园激情 | 波多野给衣一区二区三区 | 天天久久狠狠伊人第一麻豆 | 私人影院aaaaa毛片 | 精品国产人成在线 | 国产精品成人免费视频不卡 | 久久久久国产精品免费网站 | 97国内精品久久久久久久影视 | 成人私人影院www片免费高清 | 国产女人综合久久精品视 | 国产欧美精品一区二区三区 | 中国妞xxxx| 久久视频精品线视频在线网站 | 婷婷在线成人免费观看搜索 | 国产中文字幕在线免费观看 | 色琪琪永久远网址 | 天天射狠狠干 | 88精品视频 | 国产精品视频a | 九九这里只有精品 | 亚洲在线观看一区 | 一区二区三区日韩 | 四虎影视精品永久免费网站 | 午夜精品福利影院 |