Linux

103 阅读1分钟

linux配置dns

vi /etc/resolv.conf
nameserver 114.114.114.114

重启网络

systemctl restart network 

Linux 内存释放

查看内存,应该是free+buff/cache

free -h

执行写缓存到文件系统,释放内存

sync
echo 1 > /proc/sys/vm/drop_caches