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。 [[email protected] ~]# 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對映 [[email protected] ~]# vi /etc/hosts 192.168.48.10 controller 192.168.48.20 compute
12.常用系統關機命令: halt ,init 0 ,poweroff ,shutdown -h now ,shutdown -h 10