Here
are the steps to install and configure Apache Tomcat 7 on Cent OS :
- Make sure you have JAVA 6 or later version installed on your machine.
- Java --version
- Download Tomcat7 Archive
- Untar it at some location (eg: /opt/tomcat7)
- tar xzf apache-tomcat-7.0.64.tar.gz
- Start the tomcat (bydefault it will start at port 8080)
- sh /opt/tomcat7/bin/startup.sh
- Verify Apache Tomcat Server
- Goto your browser and check http://localhost:8080 or http://127.0.0.1:8080
- Stop the tomcat
- sh /opt/tomcat7/bin/shutdown.sh
- [Optional] To access admin|manager pages, you need to create user accounts. Add below lines inside <tomcat-users></tomcat-users> tags in ${tomcat7}/conf/tomcat-users.xml file.<role rolename="manager-gui"/><user username="manager" password="root123" roles="manager-gui"/><role rolename="admin-gui"/><user username="admin" password="root123" roles="manager-gui,admin-gui"/>
No comments:
Post a Comment