How do i change port number in tomcat? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i change port number in tomcat?

I am trying to change port number of tomcat from 8080 to 8086 by going in server.xml file in \conf\ folder. But I'm unable to save the server.xml file.Can anybody help

18th May 2018, 7:21 AM
Shyam Gawhale
Shyam Gawhale - avatar
1 Answer
+ 1
Do you have the permissions to edit the file? If you are in Windows, try to open your editor as administrator and then edit the file. If you are on a *nix like system check the permissions of the file. If necessary, change the same so that you can edit it (or edit it as root user).
18th May 2018, 10:54 AM
Mickel
Mickel - avatar