小编Jon*_*osi的帖子

为什么一个 MBR 磁盘上只有四个主分区?

我正在阅读 CentOS.org 上的文档

在第 25.1.2 节中。Partitions: Turning One Drive Into Many,有如下说法:

分区表分为四个部分或四个主分区。主分区是硬盘驱动器上只能包含一个逻辑驱动器(或部分)的分区。每个部分都可以保存定义单个分区所需的信息,这意味着分区表最多可以定义四个分区。

我不明白为什么只能有四个分区。这只是它最初设计的方式吗?真的可以只有 4 个主分区吗?

partition mbr

23
推荐指数
2
解决办法
1万
查看次数

在 CentOS 6 上配置 Iptables 将我锁定

我正在以 root 身份运行以下 bash 脚本来配置 iptables(我通过 SSH 登录):

#!/bin/bash

# Delete all existing rules
iptables --flush

# Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP

# Allow port 80 (http)
iptables -A INPUT -p tcp --sport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT

# Allow port 443 (https)
iptables -A INPUT -p tcp --sport 443 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT

# …
Run Code Online (Sandbox Code Playgroud)

firewall iptables centos

1
推荐指数
2
解决办法
1876
查看次数

标签 统计

centos ×1

firewall ×1

iptables ×1

mbr ×1

partition ×1