Tomcat 8 Installation
sudo apt-get update
sudo apt-get install tomcat8
sudo apt-get install tomcat8-docs tomcat8-examples tomcat8-admin
sudo cp -r /usr/share/tomcat8-admin/* /var/lib/tomcat8/webapps/
sudo vi /var/lib/tomcat8/conf/tomcat-u sers.xml
Go to the end of the file,
Add the below lines in second last line above (above </tomcat-users>)
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="password" roles="manager-gui,manager-scr ipt"/>
sudo vi /etc/default/tomcat8
Look for the line starting JAVA_OPTS and comment that line by adding # and copy the below line:
JAVA_OPTS="-Djava.security.egd =file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC"
sudo systemctl restart tomcat8
sudo systemctl status tomcat8
Now go to browser, enter ip address or DNS name of server with port no 8080
You will see a page that says It Works!
That's is Tomcat is successfully installed on Ubuntu
sudo apt-get update
sudo apt-get install tomcat8
sudo apt-get install tomcat8-docs tomcat8-examples tomcat8-admin
sudo cp -r /usr/share/tomcat8-admin/* /var/lib/tomcat8/webapps/
sudo vi /var/lib/tomcat8/conf/tomcat-u
Go to the end of the file,
Add the below lines in second last line above (above </tomcat-users>)
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="password" roles="manager-gui,manager-scr
sudo vi /etc/default/tomcat8
Look for the line starting JAVA_OPTS and comment that line by adding # and copy the below line:
JAVA_OPTS="-Djava.security.egd
sudo systemctl restart tomcat8
sudo systemctl status tomcat8
Now go to browser, enter ip address or DNS name of server with port no 8080
You will see a page that says It Works!
That's is Tomcat is successfully installed on Ubuntu
No comments:
Post a Comment