Here i am going to show you how to change default port number in Tomcat.
Go to Tomcat folder
manivel@manivel-admin:~$ cd /opt/tomcat/
You need to edit server.xml file. I am going to change default port 8089 to 8098
manivel@manivel-admin:/opt/tomcat$ vim conf/server.xml
You need to restart the Tomcat service after changing the port number.
manivel@manivel-admin:~$ sudo /etc/init.d/tomcat start
Now you can able to access Tomcat via port 8098. Go to browser and type localhost:8098
That solve...
No comments:
Post a Comment