#挂载云盘
###df
###fdisk -l
###fdisk /dev/vdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x58478707.
###Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p #输入p
Partition number (1-4, default 1): 1 #输入1
First sector (2048-209715199, default 2048): 1 #输入1
Value out of range.
First sector (2048-209715199, default 2048): #直接回车
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-209715199, default 209715199): #直接回车
Using default value 209715199
Partition 1 of type Linux and of size 100 GiB is set
Command (m for help): wq #输入wq
The partition table has been altered!
###mkfs.ext3 /dev/vdb1
手动挂载
###mount /dev/vdb1 /mnt
开机启动自动挂载
###cp /etc/fstab /etc/fstab.bak
###echo /dev/vdb1 /mnt ext3 defaults 0 0 >> /etc/fstab
mkdir /mnt/www
mkdir /www
ln -s /mnt/www / #/mnt/www 目录链接到 / 下
#阿里云设置安全组策略
在默认组里添加规则
一般需要的端口 22 80 3690 443
###注意: 阿里安全组就是服务器的另一道防火墙.