Requires java Installation
sudo add-repository ppa:webupd8team/java
sudo apt-get install oracle-java8-installer
Tomcat Installation
sudo apt-get install tomcat7
sudo gedit /etc/default/tomcat7
search line with name JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true ----->Delete line
replce line--->JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"
Add line---> JAVA_HOME=/usr/lib/jvm/java-8-oracle
sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
sudo nano /etc/tomcat7/tomcat-users.xml
----->search <tomcat-users> remove from <tomcat-users> to </tomcat-users> AND
replace
<tomcat-users>
<user username="admin" password="admin" roles="manager-gui,admin-gui"/>
</tomcat-users>
sudo service tomcat7 restart
open browser enter http://loclahost:8080
that will show Apache home Page then click on managewebapps enter login id and password as admin
sudo add-repository ppa:webupd8team/java
sudo apt-get install oracle-java8-installer
Tomcat Installation
sudo apt-get install tomcat7
sudo gedit /etc/default/tomcat7
search line with name JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true ----->Delete line
replce line--->JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"
Add line---> JAVA_HOME=/usr/lib/jvm/java-8-oracle
sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
sudo nano /etc/tomcat7/tomcat-users.xml
----->search <tomcat-users> remove from <tomcat-users> to </tomcat-users> AND
replace
<tomcat-users>
<user username="admin" password="admin" roles="manager-gui,admin-gui"/>
</tomcat-users>
sudo service tomcat7 restart
open browser enter http://loclahost:8080
that will show Apache home Page then click on managewebapps enter login id and password as admin
0 Response to "Tomcat 7 installation on ubuntu"
Post a Comment