{ "version": "https://jsonfeed.org/version/1", "title": "Vagrant", "description": "\u5728\u672c\u5730\u5f00\u53d1\u673a\u5668\u4e0a\u5feb\u901f\u542f\u52a8\u4e13\u7528\u7684\u865a\u62df\u5f00\u53d1\u73af\u5883\u3002", "home_page_url": "go/vagrant", "feed_url": "feed/vagrant.json", "icon": "https://cdn.v2ex.com/navatar/3a06/6bda/661_large.png?m=1521230268", "favicon": "https://cdn.v2ex.com/navatar/3a06/6bda/661_normal.png?m=1521230268", "items": [ { "author": { "url": "member/Davic1", "name": "Davic1", "avatar": "https://cdn.v2ex.com/gravatar/6ac3c6a1a3f8f68f2eac068a8943d7cb?s=73&d=retro" }, "url": "t/848174", "title": "2022 \u5e74\u8fd8\u6709\u5f00\u53d1\u8005/\u516c\u53f8\u5728\u7528 Vagrant \u5417", "id": "t/848174", "date_published": "2022-04-20T08:20:29+00:00", "content_html": "

\u4f60 /\u4f60\u4eec\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\u6837\u5b50?

\n" }, { "author": { "url": "member/abser", "name": "abser", "avatar": "https://cdn.v2ex.com/avatar/01dc/0997/412998_large.png?m=1565759509" }, "url": "t/693113", "date_modified": "2020-07-25T17:14:30+00:00", "content_html": "

https://www.vagrantup.com/docs

\n", "date_published": "2020-07-25T14:36:52+00:00", "title": "\u771f\u7684\u6709\u7528 vagrant \u7684\u8001\u54e5\u5417? \u8bf4\u8bf4\u5e72\u4e86\u5565?", "id": "t/693113" }, { "author": { "url": "member/Chichele", "name": "Chichele", "avatar": "https://cdn.v2ex.com/avatar/a74c/9cc3/75645_large.png?m=1417355897" }, "url": "t/655522", "title": "Vagrant \u5b98\u7f51\u4e0a\u7684\u8001\u65e7\u955c\u50cf\uff0c\u8bd5\u4e86\u597d\u51e0\u4e2a\u90fd\u4e0b\u8f7d\u4e0d\u4e86\u5440", "id": "t/655522", "date_published": "2020-03-23T14:05:39+00:00", "content_html": "

\u5c1d\u8bd5\u4e00\uff08 clusterhq/fedora20-update \uff09

\n
D:\\vagrant>vagrant up\nBringing machine 'default' up with 'virtualbox' provider...\n==> default: Box 'clusterhq/fedora20-updated' could not be found. Attempting to find and install...\n default: Box Provider: virtualbox\n default: Box Version: >= 0\n==> default: Loading metadata for box 'clusterhq/fedora20-updated'\n default: URL: https://vagrantcloud.com/clusterhq/fedora20-updated\n==> default: Adding box 'clusterhq/fedora20-updated' (v2014.09.19) for provider: virtualbox\n default: Downloading: https://vagrantcloud.com/clusterhq/boxes/fedora20-updated/versions/2014.09.19/providers/virtualbox.box\n default: Download redirected to host: storage.googleapis.com\n default:\nAn error occurred while downloading the remote file. The error\nmessage, if any, is reproduced below. Please fix this error and try\nagain.\n\nThe requested URL returned error: 500 Internal Privoxy Error\n
\n

\u5c1d\u8bd5\u4e8c(dannycoates/fedora20)

\n
D:\\vagrant>vagrant up\nBringing machine 'default' up with 'virtualbox' provider...\n==> default: Box 'dannycoates/fedora20' could not be found. Attempting to find and install...\n default: Box Provider: virtualbox\n default: Box Version: >= 0\n==> default: Loading metadata for box 'dannycoates/fedora20'\n default: URL: https://vagrantcloud.com/dannycoates/fedora20\n==> default: Adding box 'dannycoates/fedora20' (v0.1.0) for provider: virtualbox\n default: Downloading: https://vagrantcloud.com/dannycoates/boxes/fedora20/versions/0.1.0/providers/virtualbox.box\n default: Download redirected to host: dl.dropboxusercontent.com\n default:\nAn error occurred while downloading the remote file. The error\nmessage, if any, is reproduced below. Please fix this error and try\nagain.\n\nThe requested URL returned error: 404\n
\n

\u6709\u70b9\u5fc3\u9178\uff0c\u521a\u5165\u95e8\u770b\u4e86\u534a\u5929\u6587\u6863\u7ed3\u679c\u5c31\u8fd9\u3002\u3002\n\u4ece\u8fd9\u4e9b\u94fe\u63a5\u89e3\u6790\u770b\u8d77\u6765\uff0cvagrant \u5b98\u65b9\u5e76\u4e0d\u4f1a\u4fdd\u5b58\u955c\u50cf\uff0c\u800c\u662f\u4f9d\u9760\u4e2a\u4eba\u5b58\u50a8\u7a7a\u95f4\uff1f

\n

\u6709\u4eba\u6709\u529e\u6cd5\u6253\u6551\u4e00\u4e0b\u5417\uff1f

\n

ps:\u6ca1\u529e\u6cd5\u5de5\u4f5c\u4e0a\u5c31\u9700\u8981\u8fd9\u4e48\u8001\u7684\u955c\u50cf\u3002

\n" }, { "author": { "url": "member/Livid", "name": "Livid", "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1776858751" }, "url": "t/480133", "title": "Vagrant \u662f\u5426\u6709\u53ef\u80fd\u4f7f\u7528\u5c40\u57df\u7f51\u91cc\u7684\u53e6\u5916\u4e00\u53f0 Linux \u670d\u52a1\u5668\u6765\u4f5c\u4e3a provider \u8fd0\u884c\u865a\u62df\u673a\u5462\uff1f", "id": "t/480133", "date_published": "2018-08-15T10:26:55+00:00", "content_html": "" }, { "author": { "url": "member/Livid", "name": "Livid", "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1776858751" }, "url": "t/478783", "title": "ubuntu/bionic64 \u955c\u50cf\u7684\u95ee\u9898", "id": "t/478783", "date_published": "2018-08-10T21:44:33+00:00", "content_html": "\u6700\u8fd1\u628a\u672c\u5730\u7684\u51e0\u4e2a Vagrant \u5f00\u53d1\u73af\u5883\u4ece\u53e4\u65f6\u5019\u7684 Ubuntu LTS \uff08 precise64 \u548c trusty64 \uff09\u5347\u7ea7\u5230\u4e86\u6700\u65b0\u7684 bionic64\uff0c\u7136\u540e\u53d1\u73b0\u53ea\u8981\u542f\u52a8\u4e4b\u540e\u7535\u8111\u7684\u98ce\u6247\u5c31\u4f1a\u4e00\u76f4\u5728\u9ad8\u901f\u8f6c\u3002\u4f46\u662f\u4ee5\u524d\u7684 precise64 \u5e76\u6ca1\u6709\u8fd9\u6837\u7684\u73b0\u8c61\u3002" }, { "author": { "url": "member/eluotao", "name": "eluotao", "avatar": "https://cdn.v2ex.com/avatar/501b/5d85/268860_large.png?m=1773458155" }, "url": "t/444831", "date_modified": "2018-04-07T06:34:17+00:00", "content_html": "

\u4e00\u76f4\u7528 mamp \u5bf9 vagrant \u4e0d\u4e86\u89e3,\u73b0\u5728\u5b66\u4e60\u5b89\u88c5.\u60f3\u627e\u4e2a\u5e08\u5085\u6559\u6559..\u6709\u7ea2\u5305

\n

\u5b89\u88c5 php \u5f00\u53d1\u73af\u5883.\u540c\u65f6\u80fd\u5e2e\u6211\u89e3\u51b3\u4e00\u4e9b\u5b89\u88c5\u7684\u95ee\u9898\u5373\u53ef.\u5e2e\u5e2e\u5fd9.

\n

\u5fae\u4fe1 base64:QUFSQkJC

\n", "date_published": "2018-04-07T04:58:06+00:00", "title": "\u4e00\u76f4\u7528 mamp \u5bf9 vagrant \u4e0d\u4e86\u89e3,\u73b0\u5728\u5b66\u4e60\u5b89\u88c5.\u60f3\u627e\u4e2a\u5e08\u5085\u6559\u6559..\u6709\u7ea2\u5305", "id": "t/444831" }, { "author": { "url": "member/king2014", "name": "king2014", "avatar": "https://cdn.v2ex.com/gravatar/87744d6ee4c9bf9aecc59a53afb324ea?s=73&d=retro" }, "url": "t/434774", "date_modified": "2018-03-04T15:35:59+00:00", "content_html": "\u5b98\u65b9\u627e\u4e86\u4e2a centos68 \u7684\u955c\u50cf\u5927\u6982 200M \u591a\uff0c\u81ea\u5df1\u7f16\u8bd1\u5b89\u88c5\u4e86 php.mysql,nginx,Apache \u4ee5\u53ca\u5b89\u88c5\u4e0a\u8ff0\u8f6f\u4ef6\u5fc5\u8981\u7684\u4f9d\u8d56\uff0c\u8fd8\u5b89\u88c5\u4e86 zsh,git,vim.\u4fee\u6539\u4e86\u4e0b\u5b89\u88c5\u6e90\uff0c\u6700\u540e\u6253\u5305\u51fa\u6765 box \u5c45\u7136\u53d8\u6210\u4e86 3G \u7684\u5927\u5c0f\uff0c\u6211\u770b\u4e86\u4e0b\u7cfb\u7edf\u672c\u8eab\u6ca1\u4ec0\u4e48\u4e1c\u897f\u554a\uff0c\u600e\u4e48\u4f1a\u8fd9\u6837?\u5728\u6211\u770b\u6765\u5b89\u88c5\u90a3\u4e9b\u8f6f\u4ef6\u540e\u5927\u5c0f\u5728 600M \u5de6\u53f3\u662f\u7406\u60f3\u7684\uff0c\u73b0\u5728\u8fd9\u4e2a\u95ee\u9898\u4e00\u76f4\u56f0\u6270\u6211\uff0c\u7cfb\u7edf\u662f win7 \u7684\u3002", "date_published": "2018-03-04T15:32:56+00:00", "title": "vagrant \u6253\u5305 box \u6587\u4ef6\u5f88\u5927\u662f\u4ec0\u4e48\u539f\u56e0\uff1f", "id": "t/434774" }, { "author": { "url": "member/Felldeadbird", "name": "Felldeadbird", "avatar": "https://cdn.v2ex.com/avatar/fed6/d910/92455_large.png?m=1749100411" }, "url": "t/382152", "title": "\u6709\u4eba\u77e5\u9053 Vagrant \u8fd0\u884c PHP \u7279\u522b\u6162\u7684\u539f\u56e0\u5417\uff1f", "id": "t/382152", "date_published": "2017-08-11T03:27:32+00:00", "content_html": "

\u6700\u8fd1\u8fd0\u884c\u67d0\u4e2a php \u9879\u76ee\u65f6\uff0c\u6211\u53d1\u73b0\u4ec5\u4ec5\u4e00\u4e2a\u6570\u91cf\u7ea7\u4e0d\u5230 1W \u7684\u6570\u7ec4\uff0cPHP \u8fd0\u884c\u5c31\u5df2\u7ecf\u8981\u8fd0\u884c 4S \u591a\u3002\u4e3a\u4e86\u63a2\u7a76\u539f\u56e0\uff0c\u6211\u505a\u4e86\u4e00\u4e9b\u5b9e\u9a8c\u4ee5\u53ca\u7f51\u4e0a\u641c\u7d22\u4e00\u4e9b\u8d44\u6599\uff1a

\n

1.\u7531\u4e8e\u516c\u53f8\u7684\u7535\u8111\u662f WIN\uff0c\u6211\u5df2\u7ecf\u5c1d\u8bd5\u4f7f\u7528\u63d2\u4ef6\u5f00\u542f NFS\u3002\u4f46\u5e76\u6ca1\u6709\u5b9e\u9645\u63d0\u5347\u7684\u6548\u679c\u3002
\n2.\u6211\u5728\u6bcd\u9e21\u642d\u5efa\u7684\u8fd0\u884c\u73af\u5883\u6267\u884c\u4e0a\u8ff0\u811a\u672c\uff0c\u8017\u65f6 0.3 \u79d2\u4e0d\u5230\u5c31\u5b8c\u6210\u4e86\u3002
\n3.\u6211\u5728\u6bcd\u9e21\u4f7f\u7528 virtualbox \u642d\u5efa\u4e00\u4e2a\u5168\u65b0\u7684\u865a\u62df\u4e3b\u673a\uff0c\u5b58\u50a8\u683c\u5f0f\u662f vdi\u3002\u8fd0\u884c\u540c\u6837\u7684\u811a\u672c\uff0c\u8017\u65f6 0.3 \u79d2\u4e0d\u5230\u3002

\n

\u90a3\u4e48\uff0c\u5230\u5e95\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4 Vagrant \u8fd0\u884c PHP \u8fd9\u4e48\u7f13\u6162\u5462\uff1f\u662f\u6211\u4e0b\u8f7d\u7684\u955c\u50cf\u95ee\u9898\u5462\uff1f\u8fd8\u662f\u5b58\u50a8\u683c\u5f0f\u95ee\u9898\uff1f\u6ce8\uff1aVagrant \u4f7f\u7528\u7684 vmdk\u3002
\n\u73b0\u5728\u6211\u5728\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e vmdk \u5b58\u50a8\u7684\u865a\u62df\u673a\uff0c\u518d\u6765\u8dd1\u4e00\u6b21\u4e0a\u8ff0\u811a\u672c\u3002\u4f30\u8ba1\u7a0d\u540e\u5c31\u6709\u6d4b\u8bd5\u7ed3\u679c\u4e86\u3002

\n" }, { "author": { "url": "member/zbl430", "name": "zbl430", "avatar": "https://cdn.v2ex.com/avatar/f194/5770/232521_large.png?m=1760953927" }, "url": "t/379808", "title": "vagrant \u95ee\u9898", "id": "t/379808", "date_published": "2017-08-02T06:39:56+00:00", "content_html": "

ubuntu \u65b0\u521d\u59cb\u5316\u7684 box\uff0cup \u51fa\u73b0\u4e0b\u9762\u95ee\u9898

\n
Bringing machine 'default' up with 'virtualbox' provider...\nThere are errors in the configuration of this machine. Please fix\nthe following errors and try again:\n\nSSH:\n* The following settings shouldn't exist: password\n
\n

Vagrantfile \u5185\u5bb9\u4e3a:

\n
# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\n# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!\nVAGRANTFILE_API_VERSION = \"2\"\n\nVagrant.configure(VAGRANTFILE_API_VERSION) do |config|\n config.vm.box = \"Xenial64\"\nend\n
\n" }, { "author": { "url": "member/lightryanking", "name": "lightryanking", "avatar": "https://cdn.v2ex.com/avatar/0895/1e1a/68089_large.png?m=1406283157" }, "url": "t/379156", "date_modified": "2017-07-31T02:09:07+00:00", "content_html": "

\u4ffa\u4e0d\u60f3\u5f53\u4f38\u624b\u515a\uff0c\u4f46\u662f\u5b9e\u5728\u627e\u4e0d\u5230\u554a

\n

vagrant@homestead:~$ php -v

\n

PHP 7.1.3-3+deb.sury.org~xenial+1 (cli) (built: Mar 25 2017 14:00:03) ( NTS )\nCopyright (c) 1997-2017 The PHP Group

\n

vagrant@homestead:/etc/php$ ls

\n

5.5 5.6 7.0 7.1

\n

\u60f3\u5207\u5230 5.6 \u53bb

\n", "date_published": "2017-07-31T02:07:40+00:00", "title": "\u8bf7\u6559\u4e00\u4e0b vagrant laravel Homestead \u600e\u4e48\u5207\u6362 PHP \u7248\u672c\u5440\uff1f", "id": "t/379156" }, { "author": { "url": "member/lightryanking", "name": "lightryanking", "avatar": "https://cdn.v2ex.com/avatar/0895/1e1a/68089_large.png?m=1406283157" }, "url": "t/378950", "date_modified": "2017-07-30T00:11:22+00:00", "content_html": "

vagrant lavarel \u73af\u5883\u7ec8\u4e8e\u642d\u5efa\u597d\u4e86\uff0c\u6bd4\u5982\u6211\u60f3\u5173\u95ed\u865a\u62df\u673a\uff0c\u76f4\u63a5 vagrant halt \u4e0d\u884c\uff0c\u5f97 vagrant halt [ID]\u624d\u53ef\u4ee5\uff01

\n

$ vagrant halt

\n

A Vagrant environment or target machine is required to run this\ncommand. Run vagrant init to create a new Vagrant environment. Or,\nget an ID of a target machine from vagrant global-status to run\nthis command on. A final option is to change to a directory with a\nVagrantfile and to try again.

\n

$ vagrant halt e8a5aea

\n

==> homestead-7: Attempting graceful shutdown of VM...

\n

\u660e\u660e\u53ea\u6709\u4e00\u4e2a\u865a\u62df\u673a\u554a\uff0c\u600e\u6837\u8bbe\u7f6e\u624d\u53ef\u4ee5\u4e0d\u7528\u52a0 ID\uff0c\u6bcf\u4e2a\u547d\u4ee4\u90fd\u8981\u52a0 ID \u592a\u9ebb\u70e6\u4e86\uff01

\n", "date_published": "2017-07-30T00:10:56+00:00", "title": "\u6c42\u6307\u5bfc\uff0c vagrant \u547d\u4ee4\u5fc5\u987b\u52a0\u865a\u62df\u673a ID \u600e\u4e48\u7834\uff1f", "id": "t/378950" }, { "author": { "url": "member/jin7", "name": "jin7", "avatar": "https://cdn.v2ex.com/gravatar/907157f5c2e3acf2a45818cc0d32e213?s=73&d=retro" }, "url": "t/373969", "title": "\u4f7f\u7528 vagrant \u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u540d\u79f0\u4e3a ubuntu \u7684 box, \u800c\u4e0d\u662f\u9ed8\u8ba4\u7684 default?", "id": "t/373969", "date_published": "2017-07-08T11:49:03+00:00", "content_html": "

\u4f7f\u7528 vagrant \u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u540d\u79f0\u4e3a ubuntu \u7684 box, \u800c\u4e0d\u662f\u9ed8\u8ba4\u7684 default?\n\u6211\u5728\u7f51\u4e0a\u6ca1\u6709\u641c\u5230. \u53ea\u597d\u6765\u95ee\u4e0b.

\n" }, { "author": { "url": "member/lianginet", "name": "lianginet", "avatar": "https://cdn.v2ex.com/avatar/073a/f0e7/219372_large.png?m=1522136249" }, "url": "t/345618", "date_modified": "2017-03-07T08:15:41+00:00", "content_html": "

vagrant \u7684 centos7.2 \u955c\u50cf\uff0c\u4e0b\u8f7d\u9f9f\u901f\uff0c\u7136\u540e\u65ad\u6389\u3002\u6c42\u5e2e\u5fd9\u4e0b\u8f7d
\nhttps://github.com/CommanderK5/packer-centos-template/releases/download/0.7.2/vagrant-centos-7.2.box
\n\u4e03\u725b\uff0c\u767e\u5ea6\u4e91\u90fd\u884c

\n", "date_published": "2017-03-07T08:15:07+00:00", "title": "\u5e2e\u5fd9\u4e0b\u8f7d\u4e00\u4e0b vagrant box \u7684\u955c\u50cf", "id": "t/345618" }, { "author": { "url": "member/notes", "name": "notes", "avatar": "https://cdn.v2ex.com/gravatar/c218914e7279f8c0a7f9ff218a930afc?s=73&d=retro" }, "url": "t/345156", "date_modified": "2017-03-06T01:50:07+00:00", "content_html": "

\u7528 vagrant \u65f6\uff0c\u9700\u8981\u4e0b\u73b0\u6210\u7684 box \uff0c\u4f46\u662f atlas.hashicorp.com \u901f\u5ea6\u5b9e\u5728\u592a\u6162\uff0c\u4e5f\u53ef\u80fd\u662f\u88ab\u5899\u4e86\u3002

\n

\u6211\u5c31\u6302\u8fc5\u96f7\u8fdc\u7a0b\u4e0b\uff0c\u4e0b\u6210\u529f\u4e86\u4e00\u4e2a\u540e\uff0c\u6211\u518d\u63a5\u518d\u5389

\n

\"box.png\"

\n

\u5ffd\u7136\u89c9\u5f97\uff0c\u505a\u4e2a\u955c\u50cf\u4f1a\u4e0d\u4f1a\u5f88\u6709\u641e\u5934\uff1f

\n", "date_published": "2017-03-05T14:26:44+00:00", "title": "\u955c\u50cf atlas.hashicorp.com \u4e0a\u7684 box \u6709\u6ca1\u6709\u641e\u5934\uff1f", "id": "t/345156" }, { "author": { "url": "member/Nixus", "name": "Nixus", "avatar": "https://cdn.v2ex.com/gravatar/697cb9fd4571c280de158cb433da223a?s=73&d=retro" }, "url": "t/305309", "date_modified": "2016-09-10T13:30:37+00:00", "content_html": "

vagrant \u4e2d\uff0c\u5728 synced_folder \u76ee\u5f55\u4e0b\uff0c\n\u4e3a\u4ec0\u4e48\u4fee\u6539\u6587\u4ef6\u6240\u6709\u8005\uff0c\u6539\u4e0d\u4e86\u5462\uff1f\n\"https://segmentfault.com/img/bVCZD8\"

\n", "date_published": "2016-09-10T09:12:21+00:00", "title": "vagrant \u4fee\u6539 synced_folder \u4e2d\u6587\u4ef6\u7684\u5f52\u5c5e", "id": "t/305309" }, { "author": { "url": "member/dion", "name": "dion", "avatar": "https://cdn.v2ex.com/gravatar/e873ddc35e36763b3742e3663d38c4b5?s=73&d=retro" }, "url": "t/300699", "title": "\u5b89\u88c5 vagrant \u540e\uff0c\u65e0\u6cd5\u4fee\u6539 virtualbox \u7f51\u7edc\u914d\u7f6e\u3002", "id": "t/300699", "date_published": "2016-08-20T14:28:16+00:00", "content_html": "

\u5982\u9898\u3002\u4eca\u5929\u60f3\u8981\u4f7f\u7528 virtualbox \u6b63\u5e38\u5b89\u88c5\u865a\u62df\u673a\u65f6\uff0c\u53d1\u73b0\u4fee\u6539\u6dfb\u52a0\u7f51\u5361\u914d\u7f6e\uff0c virtualbox \u63a7\u5236\u53f0\u663e\u793a\u5df2\u7ecf\u4fee\u6539\u4f46\u662f\u865a\u62df\u7f51\u5361\u7684 IP \u5730\u5740\u548c dhcp \u7b49\u8fd8\u662f\u672a\u4fee\u6539\u7684\u3002\u5206\u914d\u7684 host-only \u7f51\u5361\u65e0\u6cd5\u5f00\u542f dhcp \uff0c\u663e\u793a\u5df2\u5f00\u542f\u4f46\u662f\u83b7\u53d6\u4e0d\u5230\u5730\u5740\uff0c\u7f51\u5361\u9875\u663e\u793a\u65e0 dhcp \u3002\n\u602a\u602a\u7684\uff0c\u611f\u89c9\u53ef\u80fd\u662f vagrant \u7684\u95ee\u9898\u5462\u3002

\n

\u600e\u4e48\u4e0a\u56fe\u5462 /\u5c34\u5c2c

\n" }, { "author": { "url": "member/Gonster", "name": "Gonster", "avatar": "https://cdn.v2ex.com/gravatar/73f60b2402794ba4a37c28d1c9562ff7?s=73&d=retro" }, "url": "t/280928", "title": "Vagrant \u5728\u63d0\u4f9b\u8005\u4f7f\u7528 docker \u7684\u65f6\u5019\uff0c\u4fee\u6539 vagrantfile \u5982\u4f55\u66f4\u65b0 docker container\uff1f", "id": "t/280928", "date_published": "2016-05-24T08:12:48+00:00", "content_html": "

Vagrant \u5728\u63d0\u4f9b\u8005\u4f7f\u7528 docker \u7684\u65f6\u5019\uff0c\u4fee\u6539 vagrantfile \u5982\u4f55\u66f4\u65b0 docker container \uff1f

\n

\u6211\u7528 docker provider \u5728ubuntu/trusty64\u5bbf\u4e3b\u865a\u62df\u673a\u91cc\u521b\u5efa\u4e86\u4e00\u4e2a docker \u5bb9\u5668\uff0c\u4e00\u5f00\u59cb\u914d\u7f6e\u6587\u4ef6\u5927\u6982\u662f\u8fd9\u6837\u7684\uff1a

\n
Vagrant.configure(2) do |config|\n config.vm.define \"kafka\" do |v|\n v.vm.provider \"docker\" do |d|\n d.image = \"spotify/kafka\"\n d.volumes = [\"/var/docker/kafka:/data\"]\n d.ports = [\"2181:2181\", \"9092:9092\"]\n d.vagrant_vagrantfile = \"./Vagrantfile.proxy\"\n end\n end\nend\n
\n

\u955c\u50cf\u62c9\u4e0b\u6765\uff0c\u5bb9\u5668\u521b\u5efa\u6210\u529f\u4e86\uff0c\u540e\u6765\u6211\u53d1\u73b0\u5fd8\u8bb0\u52a0\u73af\u5883\u53d8\u91cf\uff0c\u6240\u4ee5\u53c8\u6539\u4e86 vagrantfile \uff1a

\n
 config.vm.define \"kafka\" do |v|\n v.vm.provider \"docker\" do |d|\n d.image = \"spotify/kafka\"\n d.volumes = [\"/var/docker/kafka:/data\"]\n d.ports = [\"2181:2181\", \"9092:9092\"]\n d.env = {\n ADVERTISED_HOST: \"localhost\",\n ADVERTISED_PORT: \"9092\",\n KAFKA_HEAP_OPTS: \"-Xmx512M -Xms512M\"\n }\n d.vagrant_vagrantfile = \"./Vagrantfile.proxy\"\n end\n end\n
\n

\u4e8e\u662f\u6211\u7528 Vagrant \u91cd\u65b0\u542f\u52a8\u4e86\u865a\u62df\u673a\uff0c\u4ece\u63a7\u5236\u53f0\u6253\u5370\u7684\u542f\u52a8\u65e5\u5fd7\u91cc\u770b\u53d1\u73b0\u5bb9\u5668\u4f3c\u4e4e\u6ca1\u6709\u91cd\u65b0\u521b\u5efa\uff0c\u7f51\u4e0a\u67e5\u4e86\u534a\u5929\u6700\u540e\u6211\u8fd8\u662f\u5230\u5bbf\u4e3b\u673a\u91cc\u76f4\u63a5\u628a container \u5220\u4e86 - -| \uff0c \u91cd\u542f\u865a\u62df\u673a\u4ee5\u540e Vagrant \u76f4\u63a5\u53c8\u7167\u4e4b\u524d\u7684 provision \u8bbe\u7f6e\u8dd1\u4e86\u4e00\u904d\u3002

\n

\u4f46\u662f\u5b9e\u5728\u662f\u6709\u70b9\u6162\uff0c\u800c\u4e14 Vagrant \u5e94\u8be5\u6709\u91cd\u5efa provider \u662f docker \u7684\u673a\u5668\u7684\u547d\u4ee4\u5427\uff1f vagrant destroy \u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u4f1a\u628a\u5bbf\u4e3b\u865a\u62df\u673a\u4e5f\u5220\u4e86\u6015\u9ebb\u70e6\u6ca1\u8bd5\u3002\u95ee\u4e00\u4e0b\u8fd9\u79cd\u60c5\u51b5\u5e94\u8be5\u600e\u4e48\u66f4\u65b0 docker \u5bb9\u5668\u6bd4\u8f83\u65b9\u4fbf\uff1f

\n" }, { "author": { "url": "member/jszsj", "name": "jszsj", "avatar": "https://cdn.v2ex.com/gravatar/946424f3b18b204b9ba8b53bc67b7a38?s=73&d=retro" }, "url": "t/278538", "title": "vagrant \u7684\u5171\u4eab\u76ee\u5f55\u662f\u5355\u5411\u7684\u5417\uff1f", "id": "t/278538", "date_published": "2016-05-13T16:42:15+00:00", "content_html": "\u6211\u5728\u865a\u62df\u673a\u91cc\u9762\u7684 sync \u76ee\u5f55\u4e0b\u5efa\u4e86\u76ee\u5f55\u548c\u6587\u4ef6\uff0c reload \u4e4b\u540e\u53c8\u6ca1\u6709\u4e86\uff0c\u6c42\u52a9" }, { "author": { "url": "member/Rorysky", "name": "Rorysky", "avatar": "https://cdn.v2ex.com/avatar/7e19/69c8/77850_large.png?m=1765716032" }, "url": "t/275695", "date_modified": "2016-05-01T12:45:29+00:00", "content_html": " \r
\r
\u6765\u6e90\uff1a https://www.upguard.com/articles/docker-vs-vagrant (\u8fd9\u7bc7\u5bf9\u6bd4\u6587\u7ae0\u5199\u5f97\u4e5f\u5f88\u6e05\u695a)\r
\r
\u5176\u4ed6\u53c2\u8003\uff1a\r
\r
1. http://stackoverflow.com/questions/16047306/how-is-docker-different-from-a-normal-virtual-machine\r
\r
2. http://stackoverflow.com/questions/17989306/what-does-docker-add-to-lxc-tools-the-userspace-lxc-tools\r
\r
3. http://stackoverflow.com/questions/16647069/should-i-use-vagrant-or-docker-for-creating-an-isolated-environment", "date_published": "2016-05-01T12:45:19+00:00", "title": "\u4e00\u56fe\u6d41 \u5bf9\u6bd4 Docker vs. Vagrant", "id": "t/275695" }, { "author": { "url": "member/kismetX", "name": "kismetX", "avatar": "https://cdn.v2ex.com/gravatar/50339c4ca7a86224a44327649e554547?s=73&d=retro" }, "url": "t/267957", "title": "vagrant up \u65f6\u4e00\u76f4\u505c\u5728 ssh auth method: private key", "id": "t/267957", "date_published": "2016-04-01T08:44:15+00:00", "content_html": "

\u4e3b\u673a\u7cfb\u7edf win7 64 \uff0c\u865a\u62df\u673a centos65 \uff0c visual box 4.3.12,vagrant 1.8.1 \uff0c\u6c42\u89e3\uff01\uff01\uff01\uff01

\n" }, { "author": { "url": "member/pizida", "name": "pizida", "avatar": "https://cdn.v2ex.com/avatar/5d1c/4673/56936_large.png?m=1393461457" }, "url": "t/256991", "title": "vagrant \u4e0b\u901a\u8fc7\u90e8\u7f72\u4e86 nginx \u7684 web \u76ee\u5f55\uff0c\u5f53 windows \u4e0b\u5171\u4eab\u8be5\u76ee\u5f55\u65f6\uff0c web \u76ee\u5f55\u4f1a\u5931\u6548\uff1f", "id": "t/256991", "date_published": "2016-02-17T01:30:49+00:00", "content_html": "

\u9884\u671f\uff1a\u901a\u8fc7 windows \u4e0b\u5171\u4eab vagrant \u7ba1\u7406\u7684\u865a\u62df\u673a\u7684 web \u76ee\u5f55\u3002\u53ef\u4ee5\u76f4\u63a5\u5728 windows \u4e0b\u5f00\u53d1\uff0c\u7136\u540e\u6587\u4ef6\u5171\u4eab\u5728 web \u76ee\u5f55\u4e0b\u3002

\n\n

\u95ee\u9898\uff1a\u6bcf\u6b21\u914d\u7f6e vagrant \u5171\u4eab\u76ee\u5f55\u540e\uff0c web \u5c31\u4f1a\u65e0\u6548\u3002\u8bf7\u95ee\u8be5\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002

\n" }, { "author": { "url": "member/ming2281", "name": "ming2281", "avatar": "https://cdn.v2ex.com/avatar/fa0e/cdc7/77292_large.png?m=1463581866" }, "url": "t/256819", "date_modified": "2016-02-16T06:38:15+00:00", "content_html": "1 \u4ece\u5b98\u7f51\u641c\u7d22\u4e00\u4e2a\u81ea\u5df1\u4e2d\u610f\u7684\u4e14\u6bd4\u8f83\u6d41\u884c\u7684 box ( https://atlas.hashicorp.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=&q=)\r
2 \u5230( http://www.vagrantbox.es/ )\u5bfb\u627e\u662f\u5426\u6709\u8fd9\u4e2a box \u7684\u4e0b\u8f7d\u94fe\u63a5,\u5982\u679c\u6709,\u4e0b\u8f7d\u4e4b; \u6ca1\u6709, \u8fd4\u56de\u7b2c 1 \u6b65\r
3 \u5229\u7528\u8fc5\u96f7\u7b49\u5de5\u5177\u79bb\u7ebf\u4e0b\u8f7d\u4e4b,(\u5927\u6982\u80fd\u6709 200K \u5de6\u53f3\u7684\u7f51\u901f\u5427,\u5dee\u5f3a\u4eba\u610f)\r
3.1 \u4e0a\u4f20\u5230\u81ea\u5df1\u7f51\u76d8,\u5907\u7528\r
4 \u5b66\u4f1a\u300c\u81ea\u5df1\u6253\u5305\u81ea\u5df1\u7684 box \u8fd9\u4e00\u62db\u300d", "date_published": "2016-02-16T05:09:41+00:00", "title": "\u8fd9\u7b97\u662f\u4e0b\u8f7d VagrantBox \u6bd4\u8f83\u597d\u7684\u601d\u8def\u4e86(\u6bd5\u7adf\u64b0\u5199\u5b98\u65b9\u6307\u5357\u7684\u4eba\u53c8\u4e0d\u77e5\u9053\u4e2d\u56fd\u7684\u7f51\u7edc\u60c5\u51b5, \u53cd\u6b63\u4ece\u5b98\u65b9\u5728\u7ebf\u5373\u65f6\u4e0b\u8f7d\u8fd9\u79cd\u65b9\u5f0f,\u6211\u662f\u653e\u5f03\u4e86\u7684)", "id": "t/256819" }, { "author": { "url": "member/ming2281", "name": "ming2281", "avatar": "https://cdn.v2ex.com/avatar/fa0e/cdc7/77292_large.png?m=1463581866" }, "url": "t/256805", "date_modified": "2016-02-16T04:09:47+00:00", "content_html": "\u6211\u7684 Google \u641c\u7d22\u7ed3\u679c(\u4e0d\u662f\u94fe\u63a5\u574f\u6389\u4e86,\u5c31\u662f\u89e3\u51b3\u529e\u6cd5\u5df2\u7ecf\u8fc7\u65f6(\u4ecd\u7136\u5f88\u6162)) \r
https://www.google.co.jp/?gfe_rd=cr&ei=mJ_CVrSAL8TC8gfOtIyoDg&gws_rd=ssl#q=vagrant+box++%E4%B8%AD%E5%9B%BD%E9%95%9C%E5%83%8F", "date_published": "2016-02-16T04:09:17+00:00", "title": "VagrantBox \u6709\u6bd4\u8f83\u597d\u7684\u56fd\u5185\u4e0b\u8f7d\u6e90\u5417(\u6302 SS \u4e0b\u8f7d\u56fd\u5916\u7684\u5b98\u7f51\u8fd8\u662f\u955c\u50cf\u7ad9\u90fd\u5f88\u6162,\u7ecf\u5e38\u65ad\u6389, Google \u56fd\u5185\u955c\u50cf\u7ad9,\u6ca1\u6709\u7406\u60f3\u7ed3\u679c, \u6709\u6c11\u95f4\u5206\u4eab\u7684?) (\u5e38\u7528\u7684\u5373\u53ef,\u5982 Ubuntu \u7684) (\u6211\u5df2\u7ecf\u653e\u5f03\u4ece\u5b98\u7f51\u4e0b\u8f7d\u7684\u5ff5\u5934\u4e86)", "id": "t/256805" }, { "author": { "url": "member/pizida", "name": "pizida", "avatar": "https://cdn.v2ex.com/avatar/5d1c/4673/56936_large.png?m=1393461457" }, "url": "t/254851", "date_modified": "2016-02-01T10:29:22+00:00", "content_html": "

\u5df2\u7ecf google \u8fc7\u4e86\uff0c\u4f46\u662f\u6ca1\u6709\u627e\u5230\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6848\u3002

\n\n

\u95ee\u9898\uff1a\u5728\u5bbf\u4e3b\u4e3b\u673a\u4e0a\u8bbf\u95ee\u5916\u7f51\u662f\u6b63\u5e38\u7684\uff0c\u6bd4\u5982 curl google.com \u662f\u6b63\u5e38\u8fd4\u56de\uff0c php \u4e2d\u6267\u884c curl \u4e5f\u662f ok \u7684\u3002\u4f46\u662f\u5728 vagrant \u642d\u5efa\u7684\u865a\u62df\u673a\u4e2d\uff0c curl google.com \u5c31\u8981\u8fc7 5,6s \u624d\u4f1a\u8fd4\u56de\u3002\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528 curl \u8bbf\u95ee\u5916\u7f51\u6216\u8005\u5c40\u57df\u7f51\u4e5f\u662f\u540c\u6837\u7f13\u6162\u3002\u8bf7\u95ee\u95ee\u9898\u51fa\u5728\u54ea\u91cc\uff1f

\n", "date_published": "2016-02-01T09:52:35+00:00", "title": "vagrant \u642d\u5efa\u7684\u865a\u62df\u673a\u4e0b\u8bbf\u95ee\u5916\u7f51\u5341\u5206\u7f13\u6162\uff0c\u6c42\u5927\u795e\u5206\u6790\uff1f", "id": "t/254851" }, { "author": { "url": "member/lepig", "name": "lepig", "avatar": "https://cdn.v2ex.com/avatar/1312/8f39/51948_large.png?m=1736489725" }, "url": "t/251754", "title": "\u5e2e\u5fd9\u4e0b\u8f7d\u4e2a VagrantBox\uff0c\u7f51\u8def\u592a\u70c2\u4e86", "id": "t/251754", "date_published": "2016-01-19T02:42:22+00:00", "content_html": "

\u516c\u53f8\u7f51\u8def\u592a\u70c2\uff0c\u6302\u4ee3\u7406\u4e5f\u5f88\u6162
\nhttps://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box

\n\n

\u8c22\u8c22\u4e86

\n" }, { "author": { "url": "member/lancegin", "name": "lancegin", "avatar": "https://cdn.v2ex.com/avatar/e445/259b/110661_large.png?m=1452744615" }, "url": "t/250736", "title": "vagrant \u6620\u5c04\u5916\u90e8\u7aef\u53e3\u540e\u8bbf\u95ee\u663e\u793a\"protocol mismatch\"\u662f\u54ea\u91cc\u51fa\u4e86\u95ee\u9898", "id": "t/250736", "date_published": "2016-01-14T07:41:12+00:00", "content_html": "

\u5177\u4f53\u60c5\u51b5\u662f\u8fd9\u6837\uff1a

\n\n

\u5728 vagrantfile \u4e2d\u5199\u597d\u4e86\u5916\u90e8\u7aef\u53e3\u8f6c\u53d1
\n
\nconfig.vm.network "forwarded_port", guest: 80, host: 8080
\n

\nvagrant up \u7684\u8fc7\u7a0b\u4e2d log \u4e2d\u4e5f\u6253\u51fa\u4e86\u76f8\u5e94\u7684\u4e24\u4e2a\u7aef\u53e3\u8f6c\u53d1
\n
\n==> default: Forwarding ports...
\n default: 80 => 8080 (adapter 1)
\n default: 22 => 2222 (adapter 1)
\n

\n\u7136\u540e\u95ee\u9898\u51fa\u73b0\u4e86\uff0c\u5f53\u6211\u5728\u672c\u673a\u8bbf\u95ee127.0.0.1:8080\u65f6\uff0c\u663e\u793a\u65e0\u6cd5\u8fde\u63a5\u5230\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u8bbf\u95ee\u9ed8\u8ba4\u7684\u5916\u90e8\u8f6c\u53d1\u7aef\u53e3127.0.0.1:2222\u65f6\uff0c\u663e\u793a
\n
\nSSH-2.0-OpenSSH_6.4
\nProtocol mismatch.
\n

\n\u6709\u4eba\u9047\u5230\u8fc7\u8fd9\u4e2a\u95ee\u9898\u5417\uff1f\u6c42\u4e00\u4e0b\u89e3\u91ca\u554a\uff1f

\n" }, { "author": { "url": "member/Gem", "name": "Gem", "avatar": "https://cdn.v2ex.com/gravatar/4506e57d77d4bba333eaa2c9ba89551c?s=73&d=retro" }, "url": "t/227283", "title": "Vagrant \u865a\u62df\u673a\u4e2d\u7684 ubuntu14.04 \u5982\u4f55\u91cd\u65b0\u542f\u52a8\uff1f", "id": "t/227283", "date_published": "2015-10-12T01:49:29+00:00", "content_html": "\u6539\u52a8\u865a\u62df\u673a\u4e2d\u7684 bash \u5230 zsh \uff0c chsh -s /bin/zsh \u540e\uff0c\u63d0\u793a\u6b63\u5728\u91cd\u65b0\u542f\u52a8\u6765\u8fbe\u5230\u9ed8\u8ba4\u4f7f\u7528 zsh \u7684\u6548\u679c\uff0c ubuntu shutdown \u540e\uff0c vagrant ssh \u65ad\u4e86\uff0c\u4e8e\u662f vagrant ssh \u91cd\u65b0\u8fdb\u5165\u865a\u62df\u673a\u4e2d\u7684 ssh \uff0c\u7ed3\u679c\u5f88\u81ea\u7136\uff0c\u9ed8\u8ba4\u7684\u4f9d\u7136\u662f bash \u3002\r
\r
\u8bd5\u8fc7 vagrant reload \uff0c vagrant halt -> vagrant up \uff08\u867d\u7136\u89c9\u5f97\u6ca1\u7528\uff09\u7ed3\u679c\u81ea\u7136\u65e0\u7528\uff0c\u8fdb\u5165\u865a\u62df\u673a\u4e2d ubuntu \u4e2d\u7684\u4f9d\u7136\u662f bash \u3002\r
\r
\u6709\u6ca1\u6709\u540c\u5b66\u5e73\u8fc7\u8fd9\u4e2a\u5751\uff0c\u7ed9\u4e9b\u5efa\u8bae\uff08\u76ee\u524d google \uff0c\u6ca1\u627e\u5230\uff09\uff0c\u611f\u8c22\ud83c\udf81" }, { "author": { "url": "member/Luzifer", "name": "Luzifer", "avatar": "https://cdn.v2ex.com/avatar/c98a/3fed/25204_large.png?m=1426575795" }, "url": "t/225103", "date_modified": "2015-10-01T12:00:46+00:00", "content_html": "\u8286\uff01\r

\u6b63\u5e38\u7684\u662f\u4e0b\u9762\u7684\u8fd9\u4e2a\u72b6\u6001\r

\u95ee\u9898\u5c31\u5728 Route \u8fd9\u91cc\u3002 eth0 \u6ca1\u542f\u52a8\r
\r
http://stackoverflow.com/questions/22575261/vagrant-stuck-connection-timeout-retrying\r
\r
\u8fd9\u4e2a\u95ee\u9898\u4e0b\u6240\u6709\u7b54\u6848\u90fd\u8bd5\u8fc7\u4e86\uff0c\r
vagrant destroy \u518d up \u90fd\u8bd5\u4e86\u3002\r
\r
\u5934\u75bc...\r
\u524d\u4e24\u5929\u8fd8\u597d\u597d\u7684\u3002\u6c42\u8c03\u6559\u3002\r
\r
vagrant ssh\r
ssh_exchange_identification: read: Connection reset by peer", "date_published": "2015-10-01T11:51:20+00:00", "title": "default: Warning: Connection timeout. Retrying...", "id": "t/225103" }, { "author": { "url": "member/cz208209", "name": "cz208209", "avatar": "https://cdn.v2ex.com/gravatar/b7640f351b146a798853abbf5c9f97ff?s=73&d=retro" }, "url": "t/208728", "date_modified": "2015-07-27T12:40:10+00:00", "content_html": "

vagrant\u7684\u7aef\u53e3\u6620\u5c04 \u5047\u5982config.vm.network "forwarded_port", guest: 80, host: 8080

\n\n

\u8fd9\u6837\u8bbe\u7f6e\u7684\u8bdd \u5c31\u8981\u6c42\u6211\u5728\u5bbf\u4e3b\u673a\u4e0a\u6d4f\u89c8\u5668\u8f93\u5165URL\u7684\u65f6\u5019\u8981\u5730\u5740\u7684\u540e\u9762\u52a0\u4e0a\uff1a8080

\n\n

\u53ef\u4e0d\u53ef\u4ee5\u76f4\u63a5\u8bbe\u6210

\n\n

config.vm.network "forwarded_port", guest: 80, host: 80

\n\n

\u8fd9\u6837\u662f\u5426\u53ef\u884c

\n\n

\u5982\u679c\u53ef\u884c\u4e3a\u5565\u9ed8\u8ba4\u7684\u4e0d\u76f4\u63a5\u8bbe\u6210 80\u7aef\u53e3\u5462?

\n", "date_published": "2015-07-27T12:26:04+00:00", "title": "\u95ee\u4e00\u4e2a\u5173\u4e8e vagrant \u7684\u95ee\u9898\uff0c\u6c42\u5404\u4f4d\u89e3\u7b54.", "id": "t/208728" }, { "author": { "url": "member/m939594960", "name": "m939594960", "avatar": "https://cdn.v2ex.com/avatar/3d47/b3a8/89831_large.png?m=1480660332" }, "url": "t/200358", "title": "vagrant \u4e0b flask \u8fd0\u884c\u540e\u672c\u5730\u4e0d\u80fd\u6253\u5f00", "id": "t/200358", "date_published": "2015-06-22T08:52:06+00:00", "content_html": "\u6211\u67e5\u4e86\u5f88\u591a \u90fd\u662f\u8bf4\u628ahost\u8c03\u6210 0 . 0 .0 .0 \r
\u6211\u7684\u4ee3\u7801\u662f\u8fd9\u6837\u7684\r
\r
from flask import Flask\r
app = Flask(__name__)\r
\r
@app.route("/hello")\r
def hello():\r
return "Hello World!"\r
\r
if __name__ == "__main__":\r
app.run(host='0.0.0.0')\r
\r
\u4f9d\u65e7\u4e0d\u884c\uff01\r
\r
\u6211\u7684vagrant\u7f51\u5361\u90e8\u5206\u914d\u7f6e\r
config.vm.network "private_network", ip: "192.168.33.10"\r
config.vm.network "forwarded_port", guest: 5000, host: 5000\r
\r
\u7aef\u53e3\u4e5f\u6620\u5c04\u4e86\r
\r
\u672c\u5730\u4e0d\u8bba\u6253\u5f00:127.0.0.1:5000 \u8fd8\u662flocalhost:5000 \u8fd8\u662f192.168.33.10:5000 \r
\u90fd\u662f\u63d0\u793a\u65e0\u6cd5\u663e\u793a\u6b64\u9875 ERR_CONNECTION_TIMED_OUT\r
\r
\r
\u8fd9\u662f\u4e3a\u5565\u5462\uff1f\u6298\u817e\u6211\u4e00\u5bbf\u4e86 \u771f\u662f\u86cb\u75bc" }, { "author": { "url": "member/raincious", "name": "raincious", "avatar": "https://cdn.v2ex.com/gravatar/4b1ae268162e51ad7b9d64ec60fe56d0?s=73&d=retro" }, "url": "t/195376", "title": "\u4ffa\u4e5f\u4f5c\u4e86\u4e2a Vagrant \u811a\u672c\uff0c\u7528\u6765\u81ea\u52a8\u521d\u59cb\u5316\u51fa\u4e00\u4e2a\u88c5\u597d\u4e86 Apache (With SSL) + PHP (With XDebug) + PostgreSQL + Memcached \u7684\u865a\u62df\u673a\u3002", "id": "t/195376", "date_published": "2015-06-01T12:47:00+00:00", "content_html": "

\u5728\u4ffa\u4e4b\u524d\u53d1\u4e86\u4e2a\u5e16\uff08/t/184541\uff09\u5f97\u5230\u4e86\u5927\u5bb6\u70ed\u60c5\u65e0\u79c1\u7684\u5e2e\u52a9\u4e4b\u540e\u2026\u2026\uff0c\u6700\u7ec8\u53d1\u73b0PuPHPet\u5728\u56fd\u5185\u5b9e\u5728\u6ca1\u6cd5\u4e0b\u8f7d\uff0c\u6240\u4ee5\u60f3\u529e\u6cd5\u8fd8\u662f\u81ea\u5df1\u5199\u4e86\u4e2a\u914d\u7f6e\u811a\u672c\u6765\u521d\u59cb\u5316\u3002\u867d\u7136\u6ca1\u90a3\u4e48\u7075\u6d3b\uff0c\u4f46\u662f\u7ec8\u7a76\u80fd\u7528\uff0c\u4e8e\u662f\u6574\u7406\u4e86\u4e0b\u62ff\u51fa\u6765\u3002

\n\n

\u4ed3\u5e93\u5730\u5740

\n\n

https://github.com/raincious/little-vagrant-machine

\n\n

\u7528\u6cd5\uff08\u6700\u7b80\u5355\u7684\uff09

\n\n

\u8fde\u4e0a\u4e92\u8054\u7f51\uff0c\u7136\u540e\uff1a

\n
git clone https://github.com/raincious/little-vagrant-machine.git\n
\n\n

\u5b8c\u6210\u540e\u5728 little-vagrant-machine/Project \u76ee\u5f55\u4e0b\u5efa\u7acb\u4f60\u7684\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u540d\u79f0\u53ea\u53ef\u4ee5\u662f\u5c0f\u5199\u82f1\u6587\u5b57\u7b26\uff0c\u4e2d\u95f4\u53ef\u4ee5\u6709 - \u7b26\u53f7\u3002\u4e4b\u540e\u628a\u4f60\u7684\u9879\u76ee\u62d6\u8fdb\u521a\u5efa\u7acb\u7684\u6587\u4ef6\u5939\u3002

\n\n

\u591a\u4e2a\u9879\u76ee\u91cd\u590d\u8fdb\u884c\u5c31\u884c\u4e86\u3002

\n\n

\u7136\u540e\uff1a

\n
cd little-vagrant-machine\nvagrant up\n
\n\n

\u5b8c\u6210\u4e4b\u540e\u4f1a\u7ed9\u4f60\u521b\u5efa\u4e00\u4e2a\u88c5\u597d\u4e86Apache\u3001PHP\u3001PostgreSQL\u548cMemcached\u7684\u5e72\u51c0\u865a\u62df\u673a\uff0c\u65b9\u4fbf\u4f60\u505a\u5f00\u53d1\u3002

\n\n

\u7136\u540e\u4f60\u53ef\u4ee5\u7528

\n\n
\n

http://%\u9879\u76ee\u6587\u4ef6\u5939\u540d%.project.%\u4e3b\u673a\u540d%.%\u4f60\u7684\u672c\u5730\u57df\u540d%:8080

\n
\n\n

\u6216\u8005

\n\n
\n

https://%\u9879\u76ee\u6587\u4ef6\u5939\u540d%.project.%\u4e3b\u673a\u540d%.%\u4f60\u7684\u672c\u5730\u57df\u540d%:4443

\n
\n\n

\u6765\u8bbf\u95ee\u3002\u4e3b\u673a\u540d\u4e00\u822c\u662f vagrant-ubuntu-vivid-64\uff0c\u5b89\u88c5\u597d\u4e4b\u540e\u4f1a\u663e\u793a\u7ed9\u4f60\u3002

\n\n

\u7528\u6cd5\uff08\u60f3\u8981\u6298\u817e\u7684\uff09

\n\n\n\n

\u7279\u70b9

\n\n\n\n

\u54e6\uff0c\u522b\u5fd8\u4e86\uff0c\u8fd8\u5f97

\n\n\n\n

\u4ee5\u4e0a\u3002

\n" }, { "author": { "url": "member/caixiexin", "name": "caixiexin", "avatar": "https://cdn.v2ex.com/avatar/0b2b/8c09/76678_large.png?m=1441457354" }, "url": "t/189360", "date_modified": "2015-05-08T00:27:31+00:00", "content_html": "

\u6700\u8fd1\u5c1d\u8bd5\u5728\u5de5\u4f5c\u673a\u4e0a\u7528vagrant\u7684\uff0c\u5728\u65b0\u5efa\u7684\u865a\u62df\u673a\u5185\u90e8\u8bbf\u95ee\u5916\u7f51\u7684\u65f6\u5019\u4e0d\u80fd\u6b63\u5e38\u89e3\u6790\u57df\u540d\uff08\u6bd4\u5982wget www.baidu.com\u5c31\u4e0d\u884c\uff09\uff0c\u4f46\u662f\u76f4\u63a5\u7528\u5916\u7f51ip\u8bbf\u95ee\u7f51\u7ad9\u53ef\u4ee5\uff0c\u8fd9\u4e2a\u8be5\u5982\u4f55\u89e3\u51b3\uff1f\uff08\u5728\u5bb6\u91cchost\u673a\u7528wifi\u4e0a\u7f51\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\uff09

\n\n

\u6211\u7684\u73af\u5883\u5982\u4e0b\uff1a
\nhost\u673a\u7f51\u7edc\u73af\u5883\uff1a\u4ee5\u592a\u7f51\uff08\u901a\u8fc7\u516c\u53f8\u5206\u914d\u7684\u56fa\u5b9aip\u4e0a\u7f51\uff0c\u4e14\u9700\u8981\u914d\u5168\u5c40\u5185\u7f51\u4ee3\u7406\uff09
\n\u64cd\u4f5c\u7cfb\u7edf\uff1awin8.1
\nvagrant\u7248\u672c\uff1a1.7.1
\nvirtualbox\u7248\u672c\uff1a4.3.20
\n\u4f7f\u7528\u7684box\uff1aubuntu12.04\uff08precise32.box\uff09
\n\u865a\u62df\u673a\u7684\u7f51\u7edc\u914d\u7f6e\uff1a\u4f7f\u7528vagrant init \u9ed8\u8ba4\u751f\u6210\u7684Vagrantfile\u914d\u7f6e\uff08\u4e5f\u5c31\u662fnat\u4e0a\u7f51\uff1f\uff09
\n\u865a\u62df\u673a\u4e2d\u7684dns\uff1a /etc/resolv.conf \u4e2d\u7684\u914d\u7f6e\u662f nameserver 10.0.2.3

\n\n

\u4ee5\u4e0a\u7684\u73af\u5883\u8981\u600e\u4e48\u6837\u624d\u80fd\u8ba9\u865a\u62df\u673a\u6b63\u5e38\u89e3\u6790\u57df\u540d\u5462\uff1f
\n\u6211\u4fee\u6539\u8fc7Vagrantfile\uff0c\u6dfb\u52a0\u4e86\u4e0b\u9762\u7684\u914d\u7f6e\u4e5f\u4e0d\u884c

\n
\nconfig.vm.provider :virtualbox do |vb|
\n vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
\nend
\n

\n\u76f4\u63a5\u4fee\u6539\u865a\u62df\u673a\u4e2d\u7684 /etc/resolv.conf \u4e3a nameserver 8.8.8.8 \u4e5f\u4e0d\u884c

\n\n

\u7f51\u7edc\u65b9\u9762\u6709\u70b9\u534a\u6876\u6c34\uff0c\u6073\u8bf7\u8d50\u6559_(:\u0437\u300d\u2220)_\uff0cthanks in advance

\n", "date_published": "2015-05-08T00:25:24+00:00", "title": "\u8bf7\u6559\u4e00\u4e0b vagrant \u521b\u5efa\u7684\u865a\u62df\u673a\u4e2d dns \u89e3\u6790\u5f02\u5e38\u7684\u95ee\u9898", "id": "t/189360" }, { "author": { "url": "member/raincious", "name": "raincious", "avatar": "https://cdn.v2ex.com/gravatar/4b1ae268162e51ad7b9d64ec60fe56d0?s=73&d=retro" }, "url": "t/184541", "date_modified": "2015-04-18T05:58:35+00:00", "content_html": "

\u597d\u5427\uff0c\u5df2\u7ecf\u77e5\u9053Ruby\u7684rubygems.org\u5728\u5927\u9646\u5f88\u6162\u5f88\u6162\u5f88\u6162\u4e86\uff0c\u6240\u4ee5\u66ff\u6362\u6210\u4e86\u6dd8\u5b9d\u5bb6\u7684ruby.taobao.org\u3002

\n\n

\u5177\u4f53\u5c31\u662f\u5728puphpet/shell/install-ruby.sh\u91cc\uff0c\u4fee\u6539\u539f\u5148\u7684\uff1a

\n
if [[ -f /.puphpet-stuff/install-ruby-1.9.3-p551 ]]; then\n exit 0\nfi\n
\n\n

\u4e3a

\n
if [[ -f /.puphpet-stuff/install-ruby-1.9.3-p551 ]]; then\n gem sources --remove https://rubygems.org/\n\n gem sources -a https://ruby.taobao.org/\n\n exit 0\nfi\n
\n\n

\u4e3a\u4e86\u5b89\u5168\uff0c\u6211\u8fd8\u5728

\n
/usr/local/rvm/bin/rvm cleanup all\n
\n\n

\u4e0b\u9762\u52a0\u4e0a\u4e86

\n
gem sources --remove https://rubygems.org/\n\ngem sources -a https://ruby.taobao.org/\n
\n\n

\u4f46\u662f\u4ed6\u4eec\u770b\u8d77\u6765\u5e76\u6ca1\u6709\u88ab\u6267\u884c\u3002

\n\n

\u7136\u540e\u6211\u5c31\u6b22\u5feb\u7684vagrant up\u4e86\uff0cbox\u4e0b\u8f7d\u8fc7\u7a0b\u5f88\u987a\u5229\uff08\u4e8b\u5b9e\u4e0a\u6211\u4e24\u4e2abox\u7684\u4e0b\u8f7d\u90fd\u5f88\u987a\u5229\uff0c\u4f46\u90fdup\u4e0d\u8d77\u6765\uff0c\u5305\u62ec\u8fd9\u4e2a:(

\n\n

\u5177\u4f53\u63d0\u793a\u7684\u95ee\u9898\u5982\u4e0b\uff1a

\n\n
\n

==> default: stdin: is not a tty
\n==> default: https://rubygems.org/ removed from sources
\n==> default: https://ruby.taobao.org/ added to sources
\n==> default: Running provisioner: shell...
\n default: Running: /tmp/vagrant-shell20150418-18582-urskzp.sh
\n==> default: stdin: is not a tty
\n==> default: ERROR: Could not find a valid gem 'deep_merge' (>= 0), here is why:
\n==> default: Unable to download data from https://ruby.taobao.org/ - no such name (https://ruby.taobao.org/specs.4.8.gz)
\n==> default: ERROR: Could not find a valid gem 'activesupport' (>= 0), here is why:
\n==> default: Unable to download data from https://ruby.taobao.org/ - no such name (https://ruby.taobao.org/specs.4.8.gz)
\n==> default: ERROR: Could not find a valid gem 'vine' (>= 0), here is why:
\n==> default: Unable to download data from https://ruby.taobao.org/ - no such name (https://ruby.taobao.org/specs.4.8.gz)
\n==> default: Running provisioner: puppet...
\n==> default: Running Puppet with site.pp...
\n==> default: stdin: is not a tty
\n==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-0dbc21df9f28d2dcc14f24b7bc2688e7/concat/lib/facter/concat_basedir.rb

\n
\n\n

\u540e\u9762\u4e0d\u7528\u770b\u4e86\u2026\u2026\u800c\u4e14\u5927\u5bb6\u4e5f\u90fd\u77e5\u9053\u5982\u679cRuby\u8fd9\u5957\u88c5\u4e0d\u597d\u7684\u8bdd\uff0c\u865a\u62df\u673a\u91cc\u662f\u4ec0\u4e48\u90fd\u6ca1\u6709\u7684\u3002

\n\n

\u7136\u540e\u6211vagrant ssh\u8fdb\u4e86\u865a\u62df\u673a\uff0cgem source -l\u770b\u4e86\u4e0b\uff0c\u865a\u62df\u673a\u91cc\u7684\u8fd8\u662frubygems.org\u7684\u6e90\u3002

\n\n

\u7136\u540e\uff1a
\n- \u64cd\u4f5c\u7cfb\u7edfFedora 21\uff0c\u865a\u62df\u673a\u662f puphpet/ubuntu1404-x64
\n- \u865a\u62df\u673a\u542f\u52a8\u4e4b\u540e\uff0c\u7f51\u8def\u662f\u901a\u7684\uff0c\u6211\u80fd\u7528ssh\u8fdb\u53bbwget\u3002
\n- \u6211\u6362\u6210\u4e86rubygems.org\uff08\u4e5f\u5c31\u662f\u4e0d\u6539\uff09\u4e4b\u540e\uff0c\u51fa\u73b0\u4e86\u4e00\u6837\u7684\u9519\u8bef
\n- Ruby \u7248\u672c 1.9.3-p551
\n- VirtualBox 4.3.26 r98988

\n\n

\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\u4e14\u5982\u4f55\u6b63\u786e\u5b89\u88c5\u5b83\u5462\uff1f

\n", "date_published": "2015-04-18T05:55:15+00:00", "title": "\u90a3\u4e48\uff0c\u4e3a\u4ec0\u4e48\u7528\u4e3a\u4ec0\u4e48\u8fd9\u6837\u542f\u52a8\u5728 PuPHPet \u6784\u5efa\u7684 vagrant \u865a\u62df\u673a\uff0c\u7136\u540e\u5931\u8d25\u4e86\uff1f", "id": "t/184541" }, { "author": { "url": "member/herozem", "name": "herozem", "avatar": "https://cdn.v2ex.com/avatar/bc5d/49f1/61201_large.png?m=1415414836" }, "url": "t/183311", "title": "\u56fd\u5185 vagrant box \u4e0b\u8f7d\u6e90\u63a8\u8350\uff1f", "id": "t/183311", "date_published": "2015-04-12T15:45:38+00:00", "content_html": "vagrantup\u4e0a\u7684\u5de8\u6162\uff0cubuntu cloud\u4e0a\u7684\u4e5f\u662f\uff0c\u8fc5\u96f7\u548c\u767e\u5ea6\u79bb\u7ebf\u90fd\u4e0b\u4e0d\u52a8=\u3002= \u641c\u5230livid\u51e0\u767e\u5929\u4ee5\u524d\u521b\u5efa\u7684\u4e3b\u9898\u4f46\u662f\u94fe\u63a5\u597d\u50cf\u5931\u6548\u4e86" }, { "author": { "url": "member/bfti", "name": "bfti", "avatar": "https://cdn.v2ex.com/avatar/8ab0/d1e3/101252_large.png?m=1425118092" }, "url": "t/173857", "title": "\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u8ba9 vagrant up \u751f\u6210\u7684\u865a\u62df\u673a\u76ee\u5f55\u540d\u79f0\u6709\u610f\u4e49\u4e00\u4e9b\u5462?", "id": "t/173857", "date_published": "2015-03-01T22:08:43+00:00", "content_html": "coreos_default_1425247643202_68527

\u751f\u6210\u4e00\u4e32\u968f\u673a\u7801,\u6ca1\u5565\u610f\u4e49\u554a:(" }, { "author": { "url": "member/bfti", "name": "bfti", "avatar": "https://cdn.v2ex.com/avatar/8ab0/d1e3/101252_large.png?m=1425118092" }, "url": "t/173641", "title": "vagrant \u4e3b\u673a\u5173\u95ed\u540e,global-status \u663e\u793a\u72b6\u6001\u600e\u4e48\u8fd8\u662f running?", "id": "t/173641", "date_published": "2015-02-28T15:29:42+00:00", "content_html": "vagrant ssh\u8fdb\u4e3b\u673a\u540e,\u901a\u8fc7poweroff\u5173\u95ed\u865a\u62df\u673a\u4e86,
\u4e4b\u540eglobal-status\u663e\u793a\u7684\u72b6\u6001\u600e\u4e48\u8fd8\u662frunning?" }, { "author": { "url": "member/NLight", "name": "NLight", "avatar": "https://cdn.v2ex.com/avatar/56b4/2b0a/48037_large.png?m=1776822890" }, "url": "t/166255", "title": "Vagrant \u5bf9\u90e8\u7f72\u5728\u963f\u91cc\u4e91\u7684\u9879\u76ee\u6709\u4ec0\u4e48\u5e2e\u52a9", "id": "t/166255", "date_published": "2015-01-28T09:44:17+00:00", "content_html": "\u6211\u521d\u6b65\u63a5\u89e6vagrant, \u770b\u8d44\u6599\u770b\u5f97\u6211\u7684\u8111\u888b\u6655\u7cca\u7cca\u7684, \u8dd1\u6765\u95ee\u4e2a\u56f0\u60d1\u5df2\u4e45\u7684\u95ee\u9898.
\u6211\u5728\u5b98\u65b9\u6587\u6863\u4e0a\u9762\u770b\u5230, vargarnt\u5bf9\u4e8eaws\u7684\u8bdd, \u662f\u76f4\u63a5\u652f\u6301\u7684, \u90a3\u4e48\u5bf9\u4e0d\u652f\u6301\u7684\u4e91\u670d\u52a1\u5668(\u6216\u8005\u8bf4\u7269\u7406\u670d\u52a1\u5668), \u5728\u90e8\u7f72\u4e00\u4e2a\u65b0\u673a\u5668(\u6bd4\u5982centos, ubuntu)\u7684\u65f6\u5019, \u6709\u4ec0\u4e48\u5e2e\u52a9?" }, { "author": { "url": "member/syqhcc", "name": "syqhcc", "avatar": "https://cdn.v2ex.com/avatar/bdbe/575d/25502_large.png?m=1345195268" }, "url": "t/163918", "title": "vagrant up \u62a5\u9519\uff0c\u4e0d\u5f97\u5df2\u6765\u6b64\u8bf7\u6559\u3002", "id": "t/163918", "date_published": "2015-01-20T11:27:44+00:00", "content_html": "OverlordsMac:centos7 a$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos7'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: centos7_default_1413296838672_81673
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2200 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...

==============================================
\u6b64\u95ee\u9898\u6298\u817e\u4e00\u4e2a\u4e0b\u5348\uff0c\u7cbe\u75b2\u529b\u5c3d\u5410\u8840\u4e09\u5347\u3002
\u4e00\u76f4\u542f\u52a8\u4e0d\u4e86\uff0c\u8be5\u600e\u4e48\u529e\uff1f" }, { "author": { "url": "member/yanest", "name": "yanest", "avatar": "https://cdn.v2ex.com/avatar/d2bd/7e3b/67824_large.png?m=1655173728" }, "url": "t/159957", "title": "vagrant \u53ef\u4ee5\u5efa\u5feb\u7167\u5417\uff1f", "id": "t/159957", "date_published": "2015-01-07T05:28:46+00:00", "content_html": "" }, { "author": { "url": "member/Livid", "name": "Livid", "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1776858751" }, "url": "t/153667", "date_modified": "2014-12-13T08:42:56+00:00", "content_html": "https://www.vagrantup.com/blog/vagrant-push-to-deploy.html

", "date_published": "2014-12-13T08:42:39+00:00", "title": "Vagrant 1.7 \u65b0\u529f\u80fd\uff0c vagrant push \u90e8\u7f72\u4ee3\u7801", "id": "t/153667" }, { "author": { "url": "member/inyfee", "name": "inyfee", "avatar": "https://cdn.v2ex.com/avatar/7b4e/82cb/32439_large.png?m=1760497379" }, "url": "t/151450", "date_modified": "2014-12-04T05:32:43+00:00", "content_html": "\u4e4b\u524d\u7528vagrant \u505a\u7684\u4e00\u4e2a\u9879\u76ee \uff0c\u5f00\u53d1\u73af\u5883\u90fd\u642d\u5efa\u597d\u4e86\uff0capache2 ,django \uff0c\u9694\u4e86\u4e00\u6bb5\u65f6\u95f4\u6ca1\u5f00\uff0c\u4eca\u5929\u6709\u65b0\u529f\u80fd\u8981\u52a0\uff0c\u4e00\u6253\u5f00\uff0c\u53d1\u73b0TMD\u5b89\u88c5\u7684\u5f00\u53d1\u73af\u5883\u53c8\u4e0d\u89c1\u4e86\uff0c\u8fd9\u662f\u600e\u4e48\u56de\u4e8b\u6c42\u79d1\u8c31\u554a\uff01\uff01\u627e\u4e0d\u56de\u6765\u53c8\u8981\u91cd\u65b0\u642d\u5efa\u73af\u5883\uff0c\u70e6\u3002", "date_published": "2014-12-04T05:19:51+00:00", "title": "vagrant \u4e0a\u642d\u5efa\u7684\u5f00\u53d1\u73af\u5883\u600e\u4e48\u53c8\u4e0d\u89c1\u4e86\uff1f", "id": "t/151450" }, { "author": { "url": "member/tedd", "name": "tedd", "avatar": "https://cdn.v2ex.com/avatar/d272/27ea/25657_large.png?m=1662294430" }, "url": "t/138641", "date_modified": "2014-10-13T08:17:02+00:00", "content_html": "\u5b89\u88c5\u4e86vagrant\u540e\uff0c\u6211\u4e0b\u8f7d\u7684\u662fUbuntu 12.04.3 Server LTS\u7684\u955c\u50cf
$ vagrant box add vmbox http://files.vagrantup.com/precise32.box

\u7136\u540e\u6211\u88c5\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u4e1c\u897f
$ sudo apt-get update
$ sudo sudo apt-get install -y wget vim build-essential openssl libreadline6 libreadline6-dev libmysqlclient-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev libcurl4-openssl-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev nodejs libpq-dev

\u8bf7\u95ee\u8fd9\u65f6\u6211\u80fd\u5c06\u5f53\u524dvagrant\u865a\u62df\u673a\u7684\u72b6\u6001\u2018\u9501\u2019\u4f4f\uff0c\u4ee5\u4fbf\u4ee5\u540e\u6062\u590d\u5230\u8be5\u72b6\u6001\u5417\uff1f\u8b6c\u5982\u6211\u54ea \u91cc\u5f04\u9519\u4e86\uff08Linux\u4e5f\u6bd4\u8f83\u751f\uff0c\u5c31\u662f\u6253\u7b97\u7528vagrant\u865a\u62df\u673a\u6765\u5b66\u4e60\uff09\uff0c\u80fd\u56de\u5230\u8fd9\u4e2a\u72b6\u6001\u4e0b\u9762\u5417\uff1f", "date_published": "2014-10-13T08:04:45+00:00", "title": "\u624d\u63a5\u89e6 vagrant\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u529e\u6cd5\u6211\u80fd\u5c06\u5f53\u524d vagrant \u865a\u62df\u673a\u7684\u72b6\u6001\u2018\u9501\u2019\u4f4f\uff0c\u4ee5\u4fbf\u4ee5\u540e\u6062\u590d\u5230\u8be5\u72b6\u6001\u5417\uff1f", "id": "t/138641" }, { "author": { "url": "member/Lucups", "name": "Lucups", "avatar": "https://cdn.v2ex.com/avatar/1925/4180/41582_large.png?m=1556244764" }, "url": "t/138582", "title": "Vagrant \u4f5c\u4e3a\u6d4b\u8bd5\u670d\u52a1\u5668\uff0c\u7f51\u9875\u52a0\u8f7d\u65f6\u95f4\u589e\u52a0\u4e86 5s \u4ee5\u4e0a", "id": "t/138582", "date_published": "2014-10-13T03:23:38+00:00", "content_html": "\u5982\u9898\u3002
\u6211 windows 8.1 \u7cfb\u7edf\uff0c\u914d\u7f6e nginx+php \u540e\uff0c\u8fd0\u884c\u6d4b\u8bd5\u7f51\u9875\uff0c\u52a0\u8f7d\u65f6\u95f4\u7ea6 1s \u5de6\u53f3\uff1b
\u5728 vagrant \u4e0a\u914d\u7f6e\u5b89\u88c5 nginx+php \u540e\uff0c\u6d4b\u8bd5\u7f51\u9875\u52a0\u8f7d\u65f6\u95f4\u5927\u5927\u5ef6\u957f\uff0c\u90fd\u5728 6s \u4ee5\u4e0a\u3002

\u95ee\uff1a
vagrant \u662f\u4e0d\u662f\u4e0d\u9002\u5408\u8fd9\u79cd\u5e94\u7528\u573a\u666f\uff1f(\u5728win\u4e0a\u7f16\u8f91\u4ee3\u7801\uff0c\u5728\u865a\u62df\u673a\u4e2d\u8dd1\u6d4b\u8bd5\u670d\u52a1\u5668)
\u6216\u662f\u6211\u7684\u786c\u4ef6\u914d\u7f6e\u592a\u4f4e\uff1f\uff08\uff23\uff30\uff35\u662f\u79fb\u52a8\u7248\u672c\u7684i3\uff0bSSD\uff09
\u8fd8\u662f\u6211\u914d\u7f6e\u6709\u95ee\u9898\uff1f" }, { "author": { "url": "member/overlords", "name": "overlords", "avatar": "https://cdn.v2ex.com/gravatar/3e65add30eaf3de5c1955d1f309c7574?s=73&d=retro" }, "url": "t/138190", "date_modified": "2014-10-10T17:11:38+00:00", "content_html": "$ sudo vagrant up
ringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = \"2\"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = \"centos7\"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing \"localhost:8080\" will access port 80 on the guest machine.
# config.vm.network \"forwarded_port\", guest: 80, host: 8080




==========================================



$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'centos7' (v0) for provider: virtualbox
default: Downloading: centos7
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /Users/a/vagrant/centos7/centos7
OverlordsMac:centos7 a$", "date_published": "2014-10-10T16:52:01+00:00", "title": "vagrant up \u62a5\u9519\u8bf7\u5e2e\u5fd9", "id": "t/138190" }, { "author": { "url": "member/loading", "name": "loading", "avatar": "https://cdn.v2ex.com/avatar/7aee/26c3/2719_large.png?m=1720319172" }, "url": "t/132289", "title": "\u5927\u5bb6\u4f1a\u8003\u8651\u7528 CoreOS \u5417\uff1f", "id": "t/132289", "date_published": "2014-09-08T02:57:27+00:00", "content_html": "\u76ee\u524d\u6211\u5728\u7528 Ubuntu" }, { "author": { "url": "member/ldehai", "name": "ldehai", "avatar": "https://cdn.v2ex.com/avatar/acac/6e55/21996_large.png?m=1433681972" }, "url": "t/130752", "title": "Vagrant \u5728\u56e2\u961f\u91cc\u5e94\u8be5\u600e\u4e48\u7528\uff1f", "id": "t/130752", "date_published": "2014-08-30T03:28:44+00:00", "content_html": "\u770b\u4e00\u822c\u7684\u505a\u6cd5\u5c31\u662f\u7528vagrant\u914d\u7f6e\u597d\u4e00\u53f0box\u865a\u62df\u673a\uff0c\u5bfc\u51fa\u540e\u7ed9\u56e2\u961f\u6240\u6709\u4eba\u4e00\u8d77\u7528\u3002\u4fdd\u8bc1\u5927\u5bb6\u7684\u5f00\u53d1\u73af\u5883\u662f\u4e00\u6837\u7684\u3002\u5927\u5bb6\u5206\u522b\u5728\u672c\u5730\u542f\u52a8\u8fd9\u4e2a\u865a\u62df\u673a\uff0cssh\u8fdb\u53bb\u5f00\u53d1\u3002

\u95ee\u9898\u662f\u73b0\u6709\u56e2\u961f\u5927\u90e8\u5206\u7528windows\u5f00\u53d1,\u5c11\u91cfmac,\u5f00\u53d1\u5de5\u5177\u7528eclipse\u548cmyeclipse\uff0c\u7cfb\u7edf\u6700\u7ec8\u662f\u90e8\u7f72\u5230linux\u4e0b\u3002

\u8fd9\u79cd\u60c5\u51b5\u5e94\u8be5\u600e\u4e48\u7528vagrant\u5462\uff1f\u6211\u611f\u89c9\u53ea\u80fd\u662f\u62ff\u6765\u505a\u5404\u81ea\u7684\u6d4b\u8bd5\u73af\u5883\u7528\u4e86\u3002" }, { "author": { "url": "member/zicjin", "name": "zicjin", "avatar": "https://cdn.v2ex.com/avatar/0342/60c0/5797_large.png?m=1465379535" }, "url": "t/128409", "title": "\u8bf7\u6559\u5173\u4e8e Vagrant \u51fa\u73b0\u91cd\u590d\u955c\u50cf\u7684\u95ee\u9898", "id": "t/128409", "date_published": "2014-08-17T11:52:10+00:00", "content_html": "\u672c\u6765\u662f\u4e00\u4e2abox\u5bf9\u5e94\u4e00\u4e2aVM\u955c\u50cf\uff0cbox\u540d\u79f0ubuntu/precise64\uff0c\u4f46\u968f\u540e\u6211\u5728\u53e6\u4e00\u4e2a\u76ee\u5f55\u7528\u76f8\u540c\u7684Vagrantfile\u6587\u4ef6\uff08\u53ea\u4fee\u6539\u4e86\u5185\u5b58\u5206\u914d\u503c\uff09\u6267\u884c\u4e86vagrant up\uff0c\u7136\u540e\u5c31\u53d1\u73b0\u6211\u521d\u59cb\u5316\u4e86\u4e00\u4e2a\u65b0\u7684VM\u955c\u50cf\u3002\u6211\u80fd\u770b\u5230\u5b83\u542f\u52a8\u4e86\u8fd9\u4e2a\u65b0\u7684VM\u955c\u50cf\u3002

\u73b0\u5728\u6211\u7684box list\u4e2d\u53ea\u6709\u4e00\u6761\uff1aubuntu/precise64 (virtualbox, 12.04.4)
\u4f46\u5728\u6211\u7684VirtualBox\u865a\u62df\u673a\u4e2d\u6709\u4e24\u4e2a\u76f8\u5173\u955c\u50cf\u3002

\u5f53\u6211\u56de\u5230\u539f\u5148\u7684\u9879\u76ee\u76ee\u5f55\u60f3\u8981vagrant up\u7684\u65f6\u5019\uff0c\u5b83\u5374\u4e0d\u518d\u542f\u52a8\u4e4b\u524d\u7b2c\u4e00\u4e2aVM\u955c\u50cf\u4e86\uff0c\u542f\u52a8\u7684\u662f\u65b0\u7684\u955c\u50cf\u3002

\u8bf7\u95ee\u6211\u600e\u6837\u624d\u80fd\u914d\u7f6e\u6e05\u695a\u4e00\u4e2abox\u5bf9\u5e94VirtualBox\u4e2d\u5177\u4f53\u54ea\u4e2a\u955c\u50cf\uff1f" }, { "author": { "url": "member/withinthefog", "name": "withinthefog", "avatar": "https://cdn.v2ex.com/gravatar/81968aa8291f842a21ea70a260af6abe?s=73&d=retro" }, "url": "t/126637", "title": "\u4f60\u4eec\u662f\u600e\u4e48\u628a vrgant cloud \u4e0a\u7684 box \u4e0b\u8f7d\u5230\u672c\u5730\u6765\u7684", "id": "t/126637", "date_published": "2014-08-07T10:41:29+00:00", "content_html": "\u6211\u8fd9\u91ccvargant init & vargant up\u4e0b\u8f7d\u901f\u5ea6\u662f0 k/s..
\u6709\u6ca1\u6709\u4ec0\u4e48\u597d\u7684\u529e\u6cd5\u4e0b\u8f7dbox?

vagrant box\u7684\u4e0b\u8f7d\u8def\u5f84\u90fd\u662f\u6307\u5411amazon\u7684,\u8c8c\u4f3c\u88ab\u5c4f\u853d\u7684\u5f88\u5389\u5bb3" }, { "author": { "url": "member/Livid", "name": "Livid", "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1776858751" }, "url": "t/124162", "title": "\u5173\u4e8e Vagrantfile \u4f7f\u7528\u7684\u4e00\u4e2a\u5c0f\u5efa\u8bae", "id": "t/124162", "date_published": "2014-07-23T13:05:19+00:00", "content_html": "\u5927\u5bb6\u5728\u521b\u5efa Vagrantfile \u4e4b\u540e\uff0c\u6700\u597d\u662f\u53ef\u4ee5\u5728\u6ce8\u91ca\u91cc\u6ce8\u660e\u4e00\u4e0b\u8fd9\u53f0\u673a\u5668\u5f53\u521d\u521b\u5efa\u7684\u65f6\u5019\u662f\u4e3a\u4e86\u4ec0\u4e48\u76ee\u7684\uff0c\u4e0d\u7136\u8fc7\u4e86\u4e24\u4e2a\u6708\u4e4b\u540e\uff0c\u5982\u679c VirtualBox \u91cc\u4e00\u5806\u673a\u5668\uff0c\u4f46\u662f\u56e0\u4e3a\u7f3a\u4e4f\u8fd9\u6837\u7684\u6ce8\u91ca\uff0c\u6e05\u7406\u8d77\u6765\u8fd8\u662f\u633a\u5934\u75bc\u7684\u3002" }, { "author": { "url": "member/tunetoystory", "name": "tunetoystory", "avatar": "https://cdn.v2ex.com/avatar/f43b/4217/23312_large.png?m=1758462185" }, "url": "t/119045", "title": "\u7528 btsync \u4ee3\u66ff vboxsf", "id": "t/119045", "date_published": "2014-06-23T05:53:01+00:00", "content_html": "\u6700\u8fd1\u5728\u5f00\u53d1\u73af\u5883\u7ed9\u7f51\u7ad9\u6d4b\u8bd5\u6027\u80fd\u7684\u65f6\u5019\u53d1\u73b0\u865a\u62df\u673a\u73af\u5883\u5de8\u6162\uff0c\u80fd\u4ece\u51e0\u5341\u6beb\u79d2\u7684\u7684\u54cd\u5e94\u4e0a\u5347\u5230\u51e0\u767e\uff01
\u770b\u4e86\u8fd9\u7bc7\u6587\u7ae0\u624d\u77e5\u9053 vboxsf \u7684\u6027\u80fd\u5f88\u6349\u6025
http://mitchellh.com/comparing-filesystem-performance-in-virtual-machines

\u4e8e\u662f\u7528 btsync \u4ee3\u66ff\u4e86 vboxsf\uff0c\u4e0d\u77e5\u9053\u5404\u4f4d\u8fd8\u6709\u6ca1\u66f4\u597d\u7684\u65b9\u6848\uff0c\u6bd5\u7adf btsync \u540c\u6b65\u8fd8\u662f\u6709\u5ef6\u8fdf\u7684\u3002

\u5bbf\u4e3b\u673a\u662f Windows\uff0c NFS \u8c8c\u4f3c\u6709\u70b9\u86cb\u75bc~" } ] } ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86