创建LVM分区 shell> fdisk /dev/xvdb #### 选择磁盘 Command (m for help): m #### 帮助 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new…
购买的 1GB 内存的 Linux 小机器,在编译安装 PHP 的时候内存捉急,只好开启 swap 交换分区来增大内存. [root@VM_139_38_centos php-7.2.12]# cat /proc/swaps Filename Type Size Used Priority [root@VM_139_38_centos php-7.2.12]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/vda1 514…
创建交换分区 root@zabbix-server:~# mkdir /swap root@zabbix-server:~# cd /swap/ root@zabbix-server:/swap# ls root@zabbix-server:/swap# dd if=/dev/zero of=swapfile bs=1M count=8k 4096+0 records in 4096+0 records out 4294967296 bytes (4.3 GB) copied, 95.3588…
shell> fdisk /dev/xvdb #### 选择磁盘 Command (m for help): m #### 帮助 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partitio…