linux部署项目时出现:Error occurred during initialization of VM

linux部署项目时出现:Error occurred during initialization of VM

1.linux部署项目出现内存不足

在这里插入图片描述

2.查看可用空间

free -m

在这里插入图片描述

3.清除缓存

## sync命令将刷新文件系统缓冲区。分号(;)分隔的命令依次执行。
# 只清除页面缓存
sync; echo 1 > /proc/sys/vm/drop_caches
# 清除目录项和inode
sync; echo 2 > /proc/sys/vm/drop_caches
# 清除页面缓存、目录项和i节点
sync; echo 3 > /proc/sys/vm/drop_caches 

在这里插入图片描述

4.再次运行

在这里插入图片描述

参考链接:https://www.cnblogs.com/minn/p/9030764.html

发布了172 篇原创文章 · 获赞 64 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/WeiHao0240/article/details/101268120