简体   繁体   English

在Linux Web服务器安装中不使用var分区

[英]not using var partition in a linux web server installation

I know that var partition is used to store variable data, administrative and log data. 我知道var分区用于存储变量数据,管理和日志数据。 I believe that if i don't create a var partition, the data in the var directory will belong to root partition. 我相信,如果我不创建var分区,则var目录中的数据将属于root分区。

So if i use a root (/) partition with a high size (70% for exemple), did i really need a /var partition? 因此,如果我使用root (/)分区(例如70%),我真的需要/var分区吗?

The spécifications of our web server : 我们的网络服务器的规格:

Os : Linux Centos 6.5 64bit.
Ram : 32 G.
Disk : 830 G.

Primarily for safety reasons: If a partition is corrupted, the rest of the system can still be accessible. 主要出于安全原因:如果分区已损坏,则仍可以访问系统的其余部分。 It may just be enough to restore a backup of the corrupt partition to fix the problem. 还原损坏分区的备份就可以解决问题。 But also to separate partitions that might be submerged files (eg / var to a mail server that is attacked by a mass mailing ...), the rest of the system would be still operational. 但是,也为了将可能是淹没文件的分区分开(例如/ var受到邮件群发攻击的邮件服务器...),系统的其余部分仍然可以运行。

Other partitions separate from the root "/" allows for corruption of another partition, can always boot Linux to fix the system ... You want to actually be able to boot in "Single user mode" to restore your station or server ... This requires an "intact" root. 从根目录“ /”分开的其他分区允许损坏另一个分区,可以始终引导Linux来修复系统...您实际上希望能够以“单用户模式”引导来还原工作站或服务器...这需要一个“完整”的根。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM