TomCat的用户添加方法以及设置自动重启的方法代码.pdfVIP

  • 3
  • 0
  • 约9.03千字
  • 约 6页
  • 2017-09-01 发布于河南
  • 举报

TomCat的用户添加方法以及设置自动重启的方法代码.pdf

TomCat的用户添加方法以及设置自动重启的方法代码

TomCat6的用户添加方法: 在 C:\Program Files\Apache Software Foundation\Tomcat 6..0\conf 目 录下 找到 文件 : tomcat-users.xml 更改代码如下: tomcat-users username=rootpassword=toor roles=admin,manager/ /tomcat-users TomCat7的用户添加方法: 在 C:\Program Files\Apache Software Foundation\Tomcat 6..0\conf 目 录下 找到 文件 : tomcat-users.xml 更改代码如下: tomcat-users username=rootpassword=toor roles=manager-gui/ /tomcat-users 在C:\ProgramFiles\Apache Software Foundation\Tomcat7.0\conf 下找到文件:server.xml 添加如下代码: Context path=/Web-StudentManager docBase=D:\javaPro\Web-StudentManager\WebRoot reloadable=true / 注 意 : Context path=/Web-StudentManager docBase=D:\javaPro\Web-StudentManager\WebRoot 引号内内容为你所要自动重启的工程的路径。否则自动重启不成功。 下面是修改过的.xml文件实例: TomCat7的用户添加方法: tomcat-users.xml 文件: ?xmlversion=1.0encoding=cp936? !-- LicensedtotheApacheSoftware Foundation (ASF)under oneor more contributor licenseagreements. See the NOTICEfile distributed with this workforadditional information regarding copyright ownership. TheASFlicensesthis file toYouunder theApache License,Version 2.0 (theLicense);you maynot usethis file exceptin compliancewith the License. Youmay obtain a copyofthe License at /licenses/LICENSE-2.0 Unlessrequired byapplicable law oragreed toin writing,software distributed under theLicenseis distributed onan AS ISBASIS, WITHOUTWARRANTIES OR CONDITIONSOFANY KIND, either expressorimplied. See theLicenseforthe specific language governing permissionsand limitationsunder theLicense. -- tomcat-users !-- NOTE: By default, nouseris included in the manager-gui role required tooperate the /manager/htmlwebapplication. Ifyouwishtouse thisapp, youmustdefine sucha user- theusernameand passwordare arbitrary. -- !-- NOTE: Thesample userand role entries below arewrapped in a comment and thusareignored whenreading thisfile. Do notforgettoremove !that surroundsthem. -- !-- role rolename=tomcat/

文档评论(0)

1亿VIP精品文档

相关文档