教训总结

spring 程序启动错误
2019-01-13 13:06:26.790 WARN 83321 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalStateException: Unable to create the directory [/tmp/tomcat.6148458843437164853.18080] to use as the base directory

Caused by: java.lang.IllegalStateException: Unable to create the directory [/tmp/tomcat.6148458843437164853.18080] to use as the base directory

按理说 tmp目录是可以写的,但是却报这个错误,查看磁盘df -h,磁盘竟然满了。

也正是因为这个原因,squid代理拒绝访问,这个问题搞了我两天,周末就这样奉献给公司了,头疼。
经过此事,得出的教训:
1.平时跑的好好的程序,突然出现问题了,那肯定是发生了什么。
2.平时运维一定要注意磁盘总量较小的盘,肯容易磁盘就满了,导致程序不能用。

原文地址:https://www.cnblogs.com/gongpipi/p/10263858.html