PageSourceSearch

https://mzvast.github.io/static/js/93.56f607dd.chunk.js

js mzvast.github.io collected 2026-10-03 09:40:55 UTC 6,806 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{239:function(e,t,a){"use strict";a.r(t),a.d(t,"readingTime",function(){return d}),a.d(t,"default",function(){return o}),a.d(t,"tableOfContents",function(){return b}),a.d(t,"frontMatter",function(){return i});var n=a(36),r=(a(0),a(35)),d={text:"1 min read",minutes:.995,time:59700,words:199},l={},c="wrapper";function o(e){var t=e.components,a=Object(n.a)(e,["components"]);return Object(r.mdx)(c,Object.assign({},l,a,{components:t,mdxType:"MDXLayout"}),Object(r.mdx)("p",null,"\u9996\u5148\u9700\u8981\u4e0b\u8f7d",Object(r.mdx)("a",Object.assign({parentName:"p"},{href:"https://www.vagrantup.com/"}),"vagrantup"),"\u548c",Object(r.mdx)("a",Object.assign({parentName:"p"},{href:"https://www.virtualbox.org/"}),"virtualbox")),Object(r.mdx)("h2",{id:"vagrant\u5e38\u7528\u547d\u4ee4"},"Vagrant\u5e38\u7528\u547d\u4ee4"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant box add {title} {url} #\u6dfb\u52a0\u4e00\u4e2a\u865a\u62df\u673a,{url}\u53ef\u4ee5\u662f\u7f51\u5740\uff0c\u4e5f\u53ef\u4ee5\u6307\u5411\u672c\u5730\u7684\u6587\u4ef6,{title}\u662f\u865a\u62df\u673a\u7684\u540d\u79f0\u53ef\u4ee5\u81ea\u5b9a\nvagrant init {title}  #\u521d\u59cb\u5316\u8be5\u865a\u62df\u673a\nvagrant up    #\u542f\u52a8\u865a\u62df\u673a\nvagrant halt [name]   #\u5173\u95ed\u865a\u62df\u673a\nvagrant box list  #\u5217\u51fa\u5f53\u524d\u5bfc\u5165\u7684box\nvagrant destory   #\u79fb\u9664\u865a\u62df\u673a\nvagrant box remove [name] #\u79fb\u9664box\nvagrant status [name] #\u67e5\u770b\u865a\u62df\u673a\u7684\u72b6\u6001\nvagrant ssh   #ssh\u8fde\u63a5\u865a\u62df\u673a\n")),Object(r.mdx)("h2",{id:"box\u7684\u6765\u6e90"},"BOX\u7684\u6765\u6e90"),Object(r.mdx)("p",null,"\u53ef\u4ee5\u81ea\u5df1\u6253\u5305box\uff0c\u4e5f\u53ef\u4ee5\u7528\u5176\u4ed6\u4eba\u6253\u5305\u597d\u7684box\u54e6\uff0c\u63a8\u8350\u4e00\u4e2a\u89c9\u5f97\u8fd8\u4e0d\u9519\u7684box\u7ad9\u70b9",Object(r.mdx)("a",Object.assign({parentName:"p"},{href:"vagrantbox.es"}),"vagrantbox.es")),Object(r.mdx)("h2",{id:"\u5173\u4e8e\u914d\u7f6e\u6587\u4ef6"},"\u5173\u4e8e\u914d\u7f6e\u6587\u4ef6"),Object(r.mdx)("p",null,"\u914d\u7f6e\u6587\u4ef6\u5728\u5f53\u524d\u76ee\u5f55\u7684Vagrantfile\u6587\u4ef6\u4e2d"),Object(r.mdx)("h2",{id:"\u4f53\u9a8c\u8fc7\u7a0b"},"\u4f53\u9a8c\u8fc7\u7a0b"),Object(r.mdx)("p",null,"\u8bf4\u9053\u4f53\u9a8c\u6211\u4eec\u5c31\u6765\u4ece\u5934\u5230\u5c3e\u8d70\u4e00\u4e2a\u8fc7\u7a0b\u5427\uff01\u5b89\u88c5\u5b8c\u4e0a\u9762\u63d0\u5230\u7684\u4e24\u4e2a\u8f6f\u4ef6\uff0c\u5728\u8fd9\u91cc\u9762\u6211\u4eec\u4ee5Devopera CentOS 6 LAMP stack\u8fd9\u4e2abox\u4e3a\u4f8b\u3002Let\u2019s Go!"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"mkdir vagrant && cd vagrant\n")),Object(r.mdx)("p",null,"   \u6dfb\u52a0box\uff1a"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant box add doco6-lamp-dev http://devopera.com/node/63/download/centos6\n")),Object(r.mdx)("p",null,"\u7136\u540e\u5c31\u4f1a\u81ea\u52a8\u7684\u7528curl\u4e0b\u8f7d\u8fd9\u4e2a\u6587\u4ef6\u4e86\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5148\u4e0b\u8f7d\u597d\u7136\u540e\u7ed9\u5b83\u4f20\u5165\u4e00\u4e2a\u672c\u5730\u5730\u5740\u54c8\u3002\u6bd4\u5982\u8fd9\u6837"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant box add doco6-dj1off-dev \\\\E:\\\\doco6-dj1offr006-dev.box     #\u6dfb\u52a0box\nvagrant init doco6-lamp-dev #\u521d\u59cb\u5316\n")),Object(r.mdx)("p",null,"\u8fd9\u4e2a\u65f6\u5019\u76ee\u5f55\u4e0b\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2a.vagrant\u76ee\u5f55\u548c\u4e00\u4e2aVagrantfile\u6587\u4ef6"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant up #\u542f\u52a8\u865a\u62df\u673a\n")),Object(r.mdx)("p",null,"\u5982\u679c\u6ca1\u6709\u62a5\u9519\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u901a\u8fc7ssh\u767b\u5f55\u865a\u62df\u673a\u4e86\uff0c\u6709\u70b9\u6fc0\u52a8\u54c8\uff01"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant ssh #ssh\u767b\u5f55\u865a\u62df\u673a\u3002\u6210\u529f\u767b\u5f55\u4f1a\u663e\u793a\u5f53\u524d\u865a\u62df\u673a\u7684\u914d\u7f6e\u4fe1\u606f\u548c\u76d1\u542c\u7684\u7aef\u53e3\u53f7\u3002\n")),Object(r.mdx)("p",null,"\u7136\u540e\u5c31\u53ef\u4ee5\u8fd0\u884c\u54
104\u79cd\u547d\u4ee4\u4e86\uff0c\u73a9\u7684\u5dee\u4e0d\u591a\u4e86\uff0c\u54b1\u4eec\u5173\u673a\u5427"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant halt\n")),Object(r.mdx)("p",null,"\u5982\u679c\u4f60\u4e0d\u518d\u4f7f\u7528\u8fd9\u4e2a\u865a\u62df\u673a\u4e86\uff0c\u60f3\u8981\u9500\u6bc1\u4f7f\u7528\u75d5\u8ff9\uff0c\u8fd0\u884c\u3002\u8fd9\u6837\u4e0b\u6b21vagrant up\u7684\u65f6\u5019\u53c8\u4f1a\u91cd\u65b0\u521d\u59cb\u5316\u8fd9\u53f0\u865a\u62df\u673a\u54af\u3002"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant destroy \n")),Object(r.mdx)("p",null,"\u5982\u679c\u4f60\u60f3\u6253\u5305\u8fd9\u4e2a\u865a\u62df\u673a\uff0c\u90a3\u4e48\u5c31\u8981\u7528\u5230\u6253\u5305\u547d\u4ee4"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"vagrant package\n")),Object(r.mdx)("p",null,"\u53ef\u9644\u5e26\u53c2\u6570\uff08\u539f\u6587\u5f15\u7528\uff09"),Object(r.mdx)("pre",null,Object(r.mdx)("code",Object.assign({parentName:"pre"},{}),"--base NAME - Instead of packaging a VirtualBox machine that Vagrant manages, this will package a VirtualBox machine that VirtualBox manages. NAME should be the name or UUID of the machine from the VirtualBox GUI.\n--output NAME - The resulting package will be saved as NAME. By default, it will be saved as package.box.\n--include x,y,z - Additional files will be packaged with the box. These can be used by a packaged Vagrantfile (documented below) to perform additional tasks.\n--vagrantfile FILE - Packages a Vagrantfile with the box, that is loaded as part of the Vagrantfile load order when the resulting box is used.\n")),Object(r.mdx)("p",null,"\u90a3\u4e48\u4eca\u5929\u521d\u6b65\u7684\u4f53\u9a8c\u5148\u5230\u8fd9\u91cc\uff0c\u66f4\u591a\u4f53\u9a8c\u671f\u5f85\u5c31\u4e0b\u6b21\u5206\u4eab\u5566~"))}o.isMDXComponent=!0;var b=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{id:"vagrant\u5e38\u7528\u547d\u4ee4",level:2,title:"Vagrant\u5e38\u7528\u547d\u4ee4",children:[]},{id:"box\u7684\u6765\u6e90",level:2,title:"BOX\u7684\u6765\u6e90",children:[]},{id:"\u5173\u4e8e\u914d\u7f6e\u6587\u4ef6",level:2,title:"\u5173\u4e8e\u914d\u7f6e\u6587\u4ef6",children:[]},{id:"\u4f53\u9a8c\u8fc7\u7a0b",level:2,title:"\u4f53\u9a8c\u8fc7\u7a0b",children:[]}]},i={}}}]);
2//# sourceMappingURL=93.56f607dd.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.