本文介绍了试图改变的Apache Tomcat端口从8080到80时内存错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图让我安装Tomcat上VPS到端口80上,而不是8080上运行,但是当我编辑我的Tomcat目录下的server.xml文件中的设置,并尝试重新启动Tomcat,我m到处这个错误:
Not really sure what that means... Does it mean I don't have enough memory? Are there alternative ways to get Tomcat to run on port 80?
Edit: Here is the output when I type in free -m:
total used free shared buffers cached
Mem: 1024 748 275 0 0 0
-/+ buffers/cache: 748 275
Swap: 0 0 0
解决方案
I got the same issue with Tomcat on OpenVZ using authbind to run on port 80. I solved it by switching from OpenJDK to Sun Java.
这篇关于试图改变的Apache Tomcat端口从8080到80时内存错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!