关于配置VPS过程,在此作一记录以防遇到情况再次Google。 1. 挂载硬盘 [root@MyVPS ~]# fdisk -l (查看磁盘分区) [root@MyVPS ~]# df -hal //*查看已划分区空间使用情况*// [root@MyVPS ~]# fdisk /dev/xvdb //*对硬盘/dev/xvdb进行增加分区操作*// p //*输入p主分区*// Partition number (1-4): 1 //*输入1第一个分区*// First cylinder (1-913, default 1): //*回车跳过*// Last cylinder or + size or +sizeM or +sizeK (1-913, default 913): //*回车跳过*// Command (m for help): w //*输入W保存退出*// [root@MyVPS ~]# mkfs -t ext3 /dev/xvdb1 //*将新分区xvdb1(此名称因系统而异)格式化为ext3格式*// [root@MyVPS ~]# mount /dev/xvdb1 /home //*将新分区xvdb1挂载到目录/home*// [root@MyVPS ~]# df -hal //*再次查看分区*// [root@MyVPS ~]# echo "/dev/xvdb1 /home ext3 defaults 1 2" >> /etc/fstab //*添加开机自动挂载*// VPS挂载硬盘方法和步骤 2. 安全设置 更改root密码 用root用户名和密码登录。 输入"passwd"命令回车后然后会提示我们输入新密码,然后回车再输入一次。 更改端口 登陆SSH,然后通过 vi /etc/ssh/sshd_config 命令打开文件,修改其中的port后面的数字。 最后一步就是重启ssh:CentOS 重启SSH : service sshd restart;DeBian重启SSH:service ssh restart 3. 配置Web环境及操作面板 不会那么多命令,因此需...