Introduction:
Apache Tomcat is an open-source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a "pure Java" HTTP web server environment for Java code to run in.
This post is about configuring Tomcat for web Application using Tomcat Manager in linux.
Steps:
1) Download Apache Tomcat from official website
tomcat.apache.org
2) Go to Directory where Tomcat downloaded and extract tar
4) Now add your web application project directory inside webapps/
5) Start tomcat
6) open localhost:8080 and click on Tomcat Manager on left side menu. It will ask for username and password then enter tomcat username and password that you mentioned in conf/tomcat-users.xml file.
7) Check your web project in list.
We are Done!!
Apache Tomcat is an open-source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a "pure Java" HTTP web server environment for Java code to run in.
This post is about configuring Tomcat for web Application using Tomcat Manager in linux.
Steps:
1) Download Apache Tomcat from official website
tomcat.apache.org
2) Go to Directory where Tomcat downloaded and extract tar
tar -xvzf apache-tomcat-x.x.xx.tar.gz cd apache-tomcat-x.x.xx/
3) Now configure tomcat
vi conf/tomcat-users.xmlAppend following lines inside before </tomcat-users>
<role rolename="manager-gui"/> <user username="username" password="password" roles="manager-gui"/>you can change username and password as per your security.
4) Now add your web application project directory inside webapps/
5) Start tomcat
sh bin/startup.shIf you need to stop your tomcat server then run command inside apache folder:
./bin/shutdown.sh
6) open localhost:8080 and click on Tomcat Manager on left side menu. It will ask for username and password then enter tomcat username and password that you mentioned in conf/tomcat-users.xml file.
7) Check your web project in list.
We are Done!!
0 comments:
Post a Comment