今天看啥
热点:

1. 改IP

vi /etc/sysconfig/network-scripts/ifcfg-ens33
  • 1
# 不改动
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=ee4673db-6db1-4e77-b770-dcd2b0ccc45a
DEVICE=ens33
# 改下面
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.4.11
GATEWAY=192.168.4.2
NETMASK=255.255.255.0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

2. 改DNS

echo -e "nameserver 114.114.114.114\nnameserver 8.8.8.8" >> /etc/resolv.conf
  • 1

3. 改yum源

下载阿里云的yum源文件(失效百度找) http://mirrors.aliyun.com/repo/Centos-7.repo 覆盖文件 /etc/yum.repos.d/Centos-Base.repo 重新生成缓存 yum clean all yum makecache

4. 改主机名

hostnamectl set-hostname myhostname
  • 1

5. 关防火墙

systemctl stop firewalld
systemctl disable firewalld
  • 1
  • 2

X. *部分网络错误解决方法

Q: Failed to start LSB: Bring up/down networking

p1

systemctl stop NetworkManager
systemctl disable NetworkManager

 

www.bkjia.comtruehttp://www.bkjia.com/LINUXxt/1316471.htmlTechArticle1. 改IP vi /etc/sysconfig/network -scripts /ifcfg -ens33 1 # 不改动 TYPE =Ethernet PROXY_METHOD =none BROWSER_ONLY =no DEFROUTE =yes IPV4_FAILURE_FATAL =no IPV6INIT =yes IPV6_A...

相关文章

    暂无相关文章
相关搜索:

帮客评论

视觉看点