{"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\"212121\"<\/a><\/p>\n

\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

fdisk \/dev\/vdb<\/code><\/pre>\n

 <\/p>\n

\"212121\"<\/a><\/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

\"33\"<\/a><\/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
\necho \"\/dev\/vdb1 \/www ext4 defaults 0 0\" >> \/etc\/fstab
\nmount -a<\/p><\/blockquote>\n

\"4\"<\/a><\/p>\n

df\u00a0\u67e5\u770b\u662f\u5426\u52a0\u8f7d\u6210\u529f<\/p>\n

\"5\"<\/a><\/p>\n

 <\/p>\n

\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u76ee\u5f55\u5df2\u7ecf\u521b\u5efa\u6302\u8f7d\u5b8c\u6bd5\uff0c\u5728www\u76ee\u5f55\u6709112G\uff0c\u7136\u540e\u7528reboot\u91cd\u8d77\u4e00\u4e0b\u7cfb\u7edf \uff0c\u518d\u770b\u770b\u662f\u4e0d\u662f\u663e\u793a\u6b63\u5e38\u3002<\/p>\n

\u6700\u540e\u5b89\u88c5LNMP\u73af\u5883\u5305\u6216\u8005BT\u9762\u677f\u3002\u5b89\u88c5\u65b9\u6cd5\u5b98\u7f51\u90fd\u6709\u4ecb\u7ecd\uff0c\u6211\u8fd9\u8fb9\u5c31\u4e0d\u505a\u8bf4\u660e\u4e86\u3002\u6211\u6bd4\u8f83\u559c\u6b22\u5b89\u88c5BT\u9762\u677f\u3002<\/p>\n

\u70b9\u51fb\u5b89\u88c5\u5b9d\u5854\u9762\u677f<\/a><\/p>\n

\u6ce8\u610f\uff1a\u53ea\u65b9\u6cd5\u53ea\u9002\u5408\u6709\u4e00\u4e2a\u7cfb\u7edf\u76d8\uff0c\u53c8\u589e\u52a0\u4e86\u4e00\u5757\u76d8\u8fd9\u79cd\u60c5\u51b5\u3002\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u7cfb\u7edf\u76d8\uff0c\u5219\u4e0d\u9700\u8981\u52a0\u6302\uff0c\u76f4\u63a5\u5b89\u88c5\u73af\u5883\u9762\u677f\u3002<\/p>\n

 <\/p>\n

\u5173\u4e8e\u5206\u533a\u65f6\u9519\u8bef\uff0c\u5206\u4e86\u4e24\u4e2a\u533a\uff0c\u60f3\u5220\u9664\u91cd\u65b0\u5206\u3002\u53ef\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n

fdisk \/dev\/vdb<\/code><\/pre>\n

\u7136\u540e\u8f93\u5165d \uff0c\u518d\u8f93\u5165wq\u4fdd\u5b58\u3002<\/p>\n","protected":false},"excerpt":{"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 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1015,337,1013,798,1014],"class_list":["post-1043","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","tag-centos","tag-linux","tag-vps","tag-798","tag-1014"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1043"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1043\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}