1. Download
1.1. Download, for instance, the zip file from Apache. In my case, the version is 9.0.27.
1.2. Extract it in a folder, for instance /home/myUser/MyPrograms
1.3. Verify you have the variable JAVA_HOME pointing to a JDK 13 installation
1.4. Go to the bin folder of the installation and type ./startup.sh (in ubuntu)
1.5. Open a browser and see if http://localhost:8080 is showing the Tomcat screen.
2. Executing the Tomcat manager
2.1. Go to the conf folder of the installation and edit the file tomcat-users.xml
2.2. Uncomment the users and role part of the file so that it has this content:
1 2 3 4 5 | <role rolename="manager-gui"/> <role rolename="tomcat"/> <user username="tomcat" password="mypassword" roles="tomcat,manager-gui"/> |
2.3. Go to the bin folder of the installation and type ./shutdown.sh and then ./startup.sh (in ubuntu) in order to stop and start the Tomcat.
2.4 Verify you can access the application Manager (Manager App button)
2.4 Verify you can access the application Manager (Manager App button)
3. Executing the Tomcat manager from a remote machine
3.1 Go to the tomcat installation and in the webapps/manager/META-INF/ folder, edit the context.xml file
The content should be similar to this one, by commenting on a line:
1 2 3 4 5 6 7 | <Context antiResourceLocking="false" privileged="true" > <!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /> --> <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/> </Context> |
3.2 Now you can access the application manager from another server
No hay comentarios:
Publicar un comentario