部署完成 就这样,搞定了。在Vagrant 1.5使用Vagrant Cloud账号,你可以访问你的WordPress应用。如下图: $ cd ~/coreos-vagrant/cluster/ 找出哪个机器监听着你的80端口: $ etcdctl get /services/web/web_1 { "host": "core-03", "port": 80, "version": "52c7248a14" } $ vagrant share core-03 --http 80 ==> core-03: Detecting network information for machine... core-03: Local machine address: 192.168.65.2 core-03: Local HTTP port: 80 core-03: Local HTTPS port: disabled ==> core-03: Checking authentication and authorization... ==> core-03: Creating Vagrant Share session... core-03: Share will be at: quick-iguana-4689 ==> core-03: Your Vagrant Share is running! Name: quick-iguana-4689 ==> core-03: URL: http://quick-iguana-4689.vagrantshare.com 结论现在你可以用CoreOS做很多事情,但至少现在你已经做完基本的工作了,如果你打算在生产环境使用多主机的Coreos集群。需要你在系统中增加ambassador容器。事实上,你可以通过ambassador容器连接etc服务器,我们将会在下周发表另外一篇博文。 原文: http://newlabs.wpengine.com/building-your-first-app-on-coreos/作者: Lucas Carlson |