blog/content/zh-cn/posts/centos7安装后没有网络.md

22 lines
390 B
Markdown
Raw Permalink Normal View History

2024-05-06 12:00:46 +08:00
---
title: "centos7安装后没有网络"
2024-05-06 14:55:42 +08:00
slug: "Linuxcentos7_installed_no_network"
2024-05-06 12:00:46 +08:00
date: 2022-11-29T01:56:00.000Z
categories:
2024-05-06 14:55:42 +08:00
- 分享
2024-05-06 12:00:46 +08:00
tags:
- linux
---
以`root`账号登陆
用`ip addr`命令查看网络参数。
打开`eth0`网卡的配置文件
```bash
vi /etc/sysconfig/network-scripts/ifcfg-eth0
```
把`NOBOOT`参数`no`,修改为`yes`
重启网络或者重启服务器都可