返回顶部 paly-小飞机

1.清除内存缓存(慎用)

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

2.关闭系统防火墙

ubuntu

ufw disable

centos7

systemctl stop firewalld.service
systemctl disable firewalld.service

3.修改静态ip地址

ubuntu

vim /etc/network/interfaces
iface ens33 inet
static address 192.168.5.101 netmask 255.255.255.0 gateway 192.168.5.1 vim /etc/resolvconf/resolv.conf.d/head nameserver 114.114.114.114

centos7

vim /etc/sysconfig/network-scripts/ifcfg-eth0

bootproto=static
onboot=yes
IPADDR=192.168.1.160
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=114.114.114.114
DNS2=8.8.8.8

重启网络

systemctl restart network

 



posted on 2022-04-23 16:07  cglmj  阅读(21)  评论(0编辑  收藏  举报