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

Setting up Initial Tomcat Administration

系統(tǒng) 2853 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元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 天天看夜夜操 | 免费视频网站一级人爱视频 | 日本一区二区三区四区公司 | 成人国产在线视频 | 亚洲欧美大片 | 国产婷婷综合在线视频中 | 成年男女免费视频观看性 | 亚洲香蕉在线观看 | 国产波波社区精品视频 | h视频网站在线观看 | 亚洲国产精品自产在线播放 | 在线观看欧洲成人免费视频 | 欧美狠狠| 99免费在线播放99久久免费 | 91国自产精品中文字幕亚洲 | 久久综合欧美成人 | 老司机午夜精品99久久免费 | 免费国产a国产片高清不卡 免费国产阿v视频在线观看 | 欧美国产大片 | 久久se精品动漫一区二区三区 | 欧美精品国产日韩综合在线 | 爆操在线| 欧美中文字幕在线视频 | 国产精品国语自产拍在线观看 | 国产91在线 | 日本 | 91精品国产综合久久欧美 | 久99频这里只精品23热 视频 | 亚洲香蕉一区二区三区在线观看 | 亚洲综合精品一区二区三区中文 | 在线观看日韩视频 | 欧美一区二区在线播放 | 精品综合久久久久97 | 欧美白人猛性xxxxx交69 | 福利视频久久 | 人人艹在线 | 伊人久久影院 | 色综合视频在线观看 | 免费黄色小视频在线观看 | 天天干夜夜撸 | 亚洲区视频 | 天天干天天干 |