知识库

标准化实施手册及常见错误


创建交换空间-swap

<p>zabbix监控报错信息 <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/faca3e9cb88738ebfe6d412600dfaf9a" alt="" /> linux服务器查看:free -h <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/6856888d129b389b8ee6348dc0a95669" alt="" /></p> <h1>解决方案:</h1> <p>创建交换分区 1、mkdir /swap 2、cd /swap/ <strong>#count=4K 代表4G,可根据情况修改</strong> 3、dd if=/dev/zero of=swapfile bs=1M count=4k 4、mkswap swapfile 5、swapon swapfile 6、cat /proc/sys/vm/swappiness 7、sysctl vm.swappiness=10 8、vi /etc/sysctl.conf <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/02cce1f7967cc1ecd1e227c7738d4511" alt="" /></p>

页面列表

ITEM_HTML