Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks
Options:
-b <size> sector size (512, 1024, 2048 or 4096)
-c switch off DOS-compatible mode
-h print help
-u <size> give sizes in sectors instead of cylinders
-v print version
-C <number> specify the number of cylinders
-H <number> specify the number of heads
-S <number> specify the number of sectors per track
selinux的全称是Security Enhance Linux,就是安全加强的Linux。
Selinux会对我们后续使用的httpd服务进行保护,导致无法访问到页面,因此需要将selinux设置为permissive或者disabled。
[root@controller ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
11.添加主机名与IP映射
[root@controller ~]# vi /etc/hosts
192.168.48.10 controller
192.168.48.20 compute
12.常用系统关机命令:
halt ,init 0 ,poweroff ,shutdown -h now ,shutdown -h 10