柚子快报邀请码778899分享:虚拟机内存占用高自动杀死进程

http://www.51969.com/

# 2. 新建 CentOS-aliyun.repo 文件cd /etc/yum.repos.dcp CentOS-Base.repo CentOS-aliyun.repo

# 3. 在CentOS-ucloud.repo文件末尾添加如下代码vim CentOS-aliyun.repo

[kernel]name=kernel Repositorybaseurl=http://mirrors.aliyun.cn/aliyun/centos/$releasever/$basearchgpgcheck=0enabled=1

# 4. 执行以下命令更新yum cacheyum clean allyum makecache

# 5. 安装earlyoomyum list | grep earlyoomyum install earlyoom.x86_64 -y# 如果需要 debuginfo:yum install earlyoom-debuginfo.x86_64 -y

systemctl start earlyoom.service systemctl status earlyoom.servicesystemctl enable earlyoom.service

柚子快报邀请码778899分享:虚拟机内存占用高自动杀死进程

http://www.51969.com/

查看原文