Change tomcat port number from 8080 to 80
2016-11-06 14:20
387 查看
I ever read a lot of blogs that how to change port numbers, which makes it funny is all the answers seems to the same, such as simply change the port from 8080 to 80 in the server.xml. Actually, It is not a fully correct answer, for new learners like me,
after we follow the steps above, we may get confused that we even cannot access to the server after we changing the port number. the Reason is that ports below 1023 is reserved, only root users can change it, but how to run as root??? the simple way is to
use 'sudo' command.
normally we may start up a tomcat by typing './bin/startup.sh', but this cannot open the port number, Instead of that, we should type the command 'sudo ./bin/startup.sh', after that we could see we don't need to contain any port number in url but still can
access to the server.
The main advantege of changing port number from 8080 to 80 is that we no more need to contain port number in our http request url.
after we follow the steps above, we may get confused that we even cannot access to the server after we changing the port number. the Reason is that ports below 1023 is reserved, only root users can change it, but how to run as root??? the simple way is to
use 'sudo' command.
normally we may start up a tomcat by typing './bin/startup.sh', but this cannot open the port number, Instead of that, we should type the command 'sudo ./bin/startup.sh', after that we could see we don't need to contain any port number in url but still can
access to the server.
The main advantege of changing port number from 8080 to 80 is that we no more need to contain port number in our http request url.
相关文章推荐
- Redirect port 80 to port 8080 for Tomcat
- Is it possible to change Agile Web Client login from port 7001 to the default port 80 in Weblogic?
- MyEclipse 启动tomcat时报错:Cannot change deployment state from ERROR to REDEPLOYING.ds
- NFS:Unable to get nfsd port number from server, using default
- Tomcat ClassNotFoundException change from 6 to 7
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- NFS挂载文件系统:unable to get mount port number from server, using default
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- 启用Tomcat时,报异常:failed to connect to localhost/127.0.0.1 (port 8080)
- Root-NFS: Unable to get nfsd port number from server, using default
- Root-NFS: Unable to get mountd port number from server, using default
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080 .
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- How to change your USB Serial Port COM number?
- how to change the port of tomcat
- MyEclipse启动本地Tomcat出错:Cannot change deployment state from ERROR to REDEPLOYING.
- How to Hide Apache Tomcat Version Number from Error Pages
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- Root-NFS: Unable to get mountd port number from server, using default
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080