zoukankan      html  css  js  c++  java
  • 教训总结

    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.平时运维一定要注意磁盘总量较小的盘,肯容易磁盘就满了,导致程序不能用。

  • 相关阅读:
    [每日短篇] 1C
    项目Alpha冲刺 Day12
    项目Alpha冲刺 Day12
    [转载]MVC中单用户登录
    GitLab
    Git 版本控制
    Jenkins持续集成
    Jenkins安装
    Docker 网络基础原理
    java中内存的使用
  • 原文地址:https://www.cnblogs.com/gongpipi/p/10263858.html
Copyright © 2011-2022 走看看