简体   繁体   English

503服务不可用错误Apache Tomcat

[英]503 Service Unavailable error Apache Tomcat

I try to deploy my Java project Apache Tomcat server but sometimes it gets down and returns me this page 我尝试部署Java项目Apache Tomcat服务器,但有时它崩溃并返回此页面

服务不可用503

Tomcat is installed on the Digitalocean's Ubuntu 14.04 and droplet's properties are 512Mb/1CPU, 20GB SSD Disk, 1000 GB transfer. Digitalocean的 Ubuntu 14.04上安装了Tomcat,Droplet的属性为512Mb / 1CPU,20GB SSD磁盘,1000GB传输。 I took the lowest option for test purposes. 我出于测试目的选择了最低的选项。 The site is visited by nobody except me and from the graphs I observe that the server is not overloaded at all. 除了我之外,没有人访问过该站点,从图表中我发现服务器根本没有过载。 Most of the time everything works fine until suddenly the server returns 503. After I restart it keeps working fine again till the next 503 error in several days. 在大多数情况下,一切正常,直到服务器突然返回503。重新启动后,它仍然可以正常工作,直到几天后出现下一个503错误。 I'd like to know what could cause this error: my mistake on configuring the server or maybe problems on server side? 我想知道什么可能导致此错误:我在配置服务器时的错误还是服务器端的问题?

That mean tomcat is not running. 这意味着tomcat没有运行。 You can use the alias command to up the tomcat service or just go in the current directory and start the service. 您可以使用alias命令来启动tomcat服务,或者仅进入当前目录并启动该服务。

Example: # tomcatup /opt/tomcat8/bin/startup.sh 示例:#tomcatup /opt/tomcat8/bin/startup.sh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM