You've already forked www.colben.cn
update
This commit is contained in:
@@ -7,8 +7,8 @@ tags: ["ipv6", "centos"]
|
||||
categories: ["network"]
|
||||
---
|
||||
|
||||
# CentOS7 禁用 ipv6
|
||||
## 方法1
|
||||
## CentOS7 禁用 ipv6
|
||||
### 方法1
|
||||
- 编辑 /etc/sysctl.conf,增加如下内容
|
||||
```
|
||||
net.ipv6.conf.all.disable_ipv6 =1
|
||||
@@ -23,7 +23,7 @@ categories: ["network"]
|
||||
sysctl -p
|
||||
```
|
||||
|
||||
## 方法2
|
||||
### 方法2
|
||||
- 执行下面命令
|
||||
```bash
|
||||
echo 1>/proc/sys/net/ipv6/conf/all/disable_ipv6
|
||||
|
Reference in New Issue
Block a user