{"id":1043,"date":"2019-08-14T00:22:50","date_gmt":"2019-08-13T16:22:50","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1043"},"modified":"2019-12-19T22:51:25","modified_gmt":"2019-12-19T14:51:25","slug":"vps%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%8c%82%e8%bd%bd%e6%95%b0%e6%8d%ae%e7%9b%98","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1043.html","title":{"rendered":"centos\u7cfb\u7edfVPS\u670d\u52a1\u5668\u6302\u8f7d\u6570\u636e\u76d8\u6559\u7a0b"},"content":{"rendered":"
\u7528\u8fdc\u7a0b\u8fde\u63a5\u5de5\u5177SSH Secure Shell Client\u6216\u8005Xshell 5\u8fde\u63a5\u4e0a\u670d\u52a1\u5668\u3002\u5982\u679c\u4f60\u5bf9\u547d\u4ee4\u4e0d\u592a\u4e86\u89e3\uff0c\u53ef\u70b9\u51fb\u4e0b\u9762\u5730\u5740\u00a0Linux\u4e2d\u5e38\u7528\u64cd\u4f5c\u547d\u4ee4<\/a><\/p>\n <\/p>\n 1\u3001\u68c0\u67e5\u6570\u636e\u76d8 \u8f93\u5165fdisk -l\u7136\u540e\u56de\u8f66\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\/dev\/vdb<\/span>\/\u6570\u636e\u76d8\u6709128.8GB\u6ca1\u6709\u6302\u8f7d(\u6ce8\u610f\u7ea2\u8272\u6587\u5b57\uff0c\u6211\u5728\u7f51\u4e0a\u770b\u522b\u7684\u6559\u7a0b\u663e\u793a\u7684\u662f\/xvdb\/\uff0c\u800c\u6211\u8fd9\u91cc\u663e\u793a\u7684\u662fvdb,\u8fd0\u884c\u547d\u4ee4\u65f6\u6839\u636e\u5b9e\u9645\u663e\u793a\u64cd\u4f5c\u3002)<\/p>\n 2\u3001\u6302\u8f7d\u6570\u636e\u786c\u76d8\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n <\/p>\n \u6839\u636e\u63d0\u793a\u6211\u4eec\u4f9d\u6b21\u8f93\u5165 n p 1 \u56de\u8f66 \u56de\u8f66 wq<\/p>\n 3\u3001\u67e5\u770b\u6302\u8f7d\u60c5\u51b5\uff08fdisk -l\uff09<\/p>\n \u6211\u4eec\u53ef\u4ee5\u770b\u5230\u9700\u8981\u6302\u8f7d\u76d8\u5df2\u7ecf\u5728\u4e86\uff0c\u73b0\u5728\u9700\u8981\u52a0\u8f7d\u5230\u6587\u4ef6\u5939\u4e2d\u53bb\u3002\u7531\u4e8e\u6211\u7684\u7f51\u7ad9\u662f\u653e\u5728WWW\u6587\u4ef6\u5939\u91cc\u9762\u3002\u6240\u4ee5\u5148\u7528mkdir\u521b\u5efa\u4e00\u4e2a\u540d\u4e3awww\u6587\u4ef6\u5939<\/p>\n 4\u3001\u683c\u5f0f\u5316\u5206\u533a\u3001\u521b\u5efa\u76ee\u5f55\u548c\u6302\u8f7d<\/p>\n mkfs.ext4 \/dev\/vdb1 df\u00a0\u67e5\u770b\u662f\u5426\u52a0\u8f7d\u6210\u529f<\/p>\n<\/a><\/p>\n
fdisk \/dev\/vdb<\/code><\/pre>\n
<\/a><\/p>\n
<\/a><\/p>\n
\necho \"\/dev\/vdb1 \/www ext4 defaults 0 0\" >> \/etc\/fstab
\nmount -a<\/p><\/blockquote>\n<\/a><\/p>\n