Create EC2 and add volumes on AWS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.