วันจันทร์ที่ 26 กุมภาพันธ์ พ.ศ. 2561

Forget user & password Apache Tomcat


   
 1. Go to folder apache tomcat  for example : C:\apache-tomcat-7.0.84\conf 

  
 2. Open file tomcat-users.xml by Notepad


3. Focus tag
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="both" roles="tomcat,role1"/>
<user username="role1" password="role1" roles="role1"/>
Uncomment all tag or add another user and user role 


4. Open command 
go to apache-tomcat-7.0.84\bin 
> shutdown 
 > Enter

5. Open command 
go to apache-tomcat-7.0.84\bin 
 > startup
 > Enter

6. Success.





ไม่มีความคิดเห็น:

แสดงความคิดเห็น

SQL script delete all table of database

 SELECT  'TRUNCATE TABLE ' + quotename(S.name) + '.' + quotename(T.name) + char(13) + char(10) + ' ' + char(13) + ch...