报错背景
服务器上安装了大数据的很多服务,正常启动运行,但是突然有一天发现,输入:jps命令后,一个进程号都没有了,但是访问服务还可以正常访问,说明服务还在运行,只是进程号没了。
报错现象
略
报错原因
/tmp 目录下的文件被系统自动删除,导致服务异常。
报错解决
修改配置文件
[root@bigdata1 ~]# vim /usr/lib/tmpfiles.d/tmp.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See tmpfiles.d(5) for details
# Clear tmp directories separately, to make them easier to override
v /tmp 1777 root root 10d
v /var/tmp 1777 root root 30d
# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp
x /tmp/hsperfdata_*
x /tmp/jetty-*
~