{"id":2618,"date":"2015-01-16T23:23:18","date_gmt":"2015-01-16T15:23:18","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2618"},"modified":"2015-02-04T01:39:25","modified_gmt":"2015-02-03T17:39:25","slug":"digitalocean-freebsd","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2015\/01\/16\/digitalocean-freebsd\/","title":{"rendered":"DigitalOcean \u7684 FreeBSD \u652f\u63f4"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u7b49\u597d\u4e45 <a href=\"https:\/\/www.digitalocean.com\/?refcode=c0136ef4a62a\">DigitalOcean<\/a> \u7d42\u65bc\u652f\u63f4 FreeBSD \u4e86\uff0c\u5728\u00a0<a href=\"https:\/\/www.digitalocean.com\/company\/blog\/presenting-freebsd-how-we-made-it-happen\/\">Presenting FreeBSD! How We Made It Happen.<\/a>\u00a0\u88e1\u9762\u6709\u7c21\u55ae\u6558\u8ff0\u600e\u9ebc\u9054\u6210\u652f\u63f4\u7684\uff0c\u7e3d\u4e4b\u5c31\u662f\u73fe\u5728\u53ef\u4ee5\u76f4\u63a5\u958b FreeBSD 10.1 \u7684 droplet \u4e86\uff0c\u5c31\u8ddf\u5176\u4ed6\u7684\u652f\u63f4\u7684 Linux distro \u4e00\u6a23\uff0c\u9019\u61c9\u8a72\u662f\u76ee\u524d\u6700\u7c21\u55ae\u7684\u67b6 FreeBSD \u4e3b\u6a5f\u7684\u670d\u52d9\u4e86\u5427\uff1f<\/p>\n<p>\u5be6\u969b\u7528\u4e0b\u4f86\u7684\u5fc3\u5f97<\/p>\n<ol>\n<li>\u958b\u6a5f\u5668\u4e00\u5b9a\u8981\u63d0\u4f9b ssh key\uff0c\u7cfb\u7d71\u4e0d\u6703\u5bc4 root \u5bc6\u78bc\u4fe1\u5230\u81ea\u5df1\u7684\u4fe1\u7bb1\uff0c\u9019\u5c0d FreeBSD \u4f86\u8b1b\u5f88\u81ea\u7136\uff0c\u56e0\u70ba\u9810\u8a2d\u7684\u7cfb\u7d71\u6839\u672c\u5c31\u4e0d\u958b\u653e root ssh \u554a\uff0c\u800c\u9019\u500b ssh key \u4e8b\u5be6\u4e0a\u662f\u7d66 freebsd \u9019\u500b\u9810\u5148\u958b\u597d\u7684\u5e33\u865f\u7528\u7684\uff0c\u9019\u500b\u5e33\u865f\u5177\u6709 sudo \u514d\u5bc6\u78bc\u7684\u6b0a\u9650\uff0c\u6240\u4ee5 ssh \u9032\u53bb\u5c31\u53ef\u4ee5\u958b\u59cb\u7528\u723d\u723d\u4e86<\/li>\n<li>rc.conf \u5e7e\u4e4e\u662f\u7a7a\u7684\uff0c\/etc\/rc.d \u4e0b\u9762\u6709\u4e00\u500b digitalocean \u6703\u8ca0\u8cac\u8a2d ip name \u9019\u4e9b\uff0c\u8a2d\u5b9a\u6703\u5beb\u5728 \/etc\/rc.digitalocean.d\/ \u88e1\u9762\uff0c\u7576\u7136\u4e0d\u9ce5\u4ed6\u81ea\u5df1\u8a2d\u5b9a\u4e5f\u662f\u53ef\u4ee5\u7684<\/li>\n<li>fast resize \u66ab\u4e0d\u652f\u63f4<\/li>\n<li>\u786c\u789f\u8ddf\u7db2\u8def\u5361\u90fd\u662f\u7528 virtio<\/li>\n<li>\u9810\u8a2d\u7684\u6a94\u6848\u7cfb\u7d71\u662f ufs\uff0c\u7136\u5f8c\u6c92\u6709\u958b SU+J\uff0c\u4e0d\u78ba\u5b9a\u5c0d\u6548\u80fd\u6709\u591a\u5927\u5f71\u97ff\uff0c\u786c\u8981\u958b\u7684\u8a71\u53ef\u4ee5\u9032 single user mode \u628a softupdate+journal \u6253\u958b\uff0cgjournal \u5c31\u6c92\u8fa6\u6cd5\u4e86<\/li>\n<li>\u88e1\u9762\u5df2\u7d93\u6709\u4e00\u4e9b\u7528 pkg \u5b89\u88dd\u597d\u7684\u5957\u4ef6\u4e86\uff0c\u50cf\u662f rsync \u8ddf perl \u7b49\uff0c\u770b\u4e0d\u9806\u773c\u7684\u8a71\u53ef\u4ee5\u76f4\u63a5\u7528 ports \u91cd\u7de8\uff0c\u57fa\u672c\u7684 ports \u5df2\u7d93\u9810\u5148\u88dd\u597d\u4e86<\/li>\n<li>\u96d6\u7136 label \u4e0a\u662f 10.1\uff0c\u4e0d\u904e\u5176\u5be6\u7528 svn \u62c9 src \u56de\u4f86\u7de8 10.1 stable \u751a\u81f3\u7de8 11-current \u90fd\u662f\u53ef\u4ee5\u7684\uff0c\u4f7f\u7528\u8d77\u4f86\u81ea\u7531\u5ea6\u5f88\u9ad8<\/li>\n<\/ol>\n<p>\u57fa\u672c\u529f\u80fd\u8b93\u4eba\u80fd\u5feb\u901f\u76f4\u63a5\u514d\u8a2d\u5b9a\u4e0a\u624b\uff0c\u4f46\u662f\u8981\u5168\u624b\u52d5\u6253\u9020\u81ea\u5df1\u7684\u74b0\u5883\u4e5f\u6c92\u6709\u9650\u5236\uff0c\u5230\u76ee\u524d\u70ba\u6b62 DigitalOcean \u63d0\u4f9b\u7684 FreeBSD \u652f\u63f4\u8b93\u4eba\u76f8\u7576\u6eff\u610f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u7b49\u597d\u4e45 DigitalOcean \u7d42\u65bc\u652f\u63f4 FreeBSD \u4e86\uff0c\u5728\u00a0Presenting FreeBSD! How We Made It Happen.\u00a0\u88e1\u9762\u6709\u7c21\u55ae\u6558\u8ff0\u600e\u9ebc\u9054\u6210\u652f\u63f4\u7684\uff0c\u7e3d\u4e4b\u5c31\u662f\u73fe\u5728\u53ef\u4ee5\u76f4\u63a5\u958b FreeBSD 10.1 \u7684 droplet \u4e86\uff0c\u5c31\u8ddf\u5176\u4ed6\u7684\u652f\u63f4\u7684 Linux distro \u4e00\u6a23\uff0c\u9019\u61c9\u8a72\u662f\u76ee\u524d\u6700\u7c21\u55ae\u7684\u67b6 FreeBSD \u4e3b\u6a5f\u7684\u670d\u52d9\u4e86\u5427\uff1f \u5be6\u969b\u7528\u4e0b\u4f86\u7684\u5fc3\u5f97 \u958b\u6a5f\u5668\u4e00\u5b9a\u8981\u63d0\u4f9b ssh key\uff0c\u7cfb\u7d71\u4e0d\u6703\u5bc4 root \u5bc6\u78bc\u4fe1\u5230\u81ea\u5df1\u7684\u4fe1\u7bb1\uff0c\u9019\u5c0d FreeBSD \u4f86\u8b1b\u5f88\u81ea\u7136\uff0c\u56e0\u70ba\u9810\u8a2d\u7684\u7cfb\u7d71\u6839\u672c\u5c31\u4e0d\u958b\u653e root ssh \u554a\uff0c\u800c\u9019\u500b ssh key \u4e8b\u5be6\u4e0a\u662f\u7d66 freebsd \u9019\u500b\u9810\u5148\u958b\u597d\u7684\u5e33\u865f\u7528\u7684\uff0c\u9019\u500b\u5e33\u865f\u5177\u6709 sudo&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4589,4591],"class_list":["post-2618","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-digitalocean","tag-freebsd"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2618"}],"version-history":[{"count":5,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2618\/revisions"}],"predecessor-version":[{"id":2624,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2618\/revisions\/2624"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}