tomcat下增加用户:

1需要在$path/conf/tomcat-users.xml下

编辑 <tomcat-users>

  <role rolename="manager-gui"/>

  <role rolename="manager-script"/>

  <role rolename="manager-jmx"/>

  <role rolename="manager-status"/>

  <user password="tomcat" roles="manager-gui,manager-script,manager-jmx,manager-status" 

username="tomcat"/>

 

</tomcat-users>