我在我的服务器上做测试,总是得到这个错误。
file for here-document: No space left on device
-bash: cannot create temp file for here-document: No space left on device所以我用命令"df“检查它。
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1970540 0 1970540 0% /dev
tmpfs 1988952 0 1988952 0% /dev/shm
tmpfs 1988952 65980 1922972 4% /run
tmpfs 1988952 0 1988952 0% /sys/fs/cgroup
/dev/nvme0n1p1 8376300 8376280 20 100% /
tmpfs 397792 16 397776 1% /run/user/1000我看到/dev/nvme0n1p1文件正在使用大部分内存。我有办法释放那些记忆吗?或者我能做些什么来释放一些记忆。
发布于 2021-03-03 03:06:36
要释放内存,可以执行以下操作:
example".
/var/log中的日志文件并清空任何大日志文件。如果您使用任何webserver "Nginx,Apache用于未使用的包并删除未使用的文件“,则logrotate工具将不会占用磁盘空间。find命令如下:find / -size +100M | xargs du -sch此命令将列出大文件并显示其大小。H 212G 213https://stackoverflow.com/questions/66448941
复制相似问题