When creating an instance, you do not need to add vol. You only need to leave root,
Create a volume in volumn.
Add it to the instance.
Command used:
Sudo fdisk-l
Lsblk
Partition: fdisk-s 56/dev/xvdb
Enter "N", "P", "1" in sequence, press ENTER twice, and "WQ". The partition starts and will be completed soon.
Format: mkfs-T ext4/dev/svdb1
Sudo fdisk-l
(Http://help.aliyun.com/view/11108189_13435365.html? SPM = 5176.7224609.19972825.4.ztzx9k)
When creating a volume without using a snapshot, You need to partition and format it.
If a snapshot is used, it is a ready-made partition and formatted.
Mount/opt/dev/svdg1
According to the tutorial, all the outbound policies of the Security Group will be deleted, so that the system cannot be updated and the software cannot be installed,
At the beginning, port 80 of all targets must be enabled.
Create EC2 and add volumes on AWS