{"id":16314813,"url":"https://github.com/forecho/vagrant-centos-6.5","last_synced_at":"2026-01-24T00:54:38.599Z","repository":{"id":32015194,"uuid":"35586320","full_name":"forecho/vagrant-centos-6.5","owner":"forecho","description":"我的虚拟机","archived":false,"fork":false,"pushed_at":"2015-07-31T05:46:21.000Z","size":1892,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T16:55:47.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forecho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-14T02:30:18.000Z","updated_at":"2016-07-28T10:17:10.000Z","dependencies_parsed_at":"2022-09-02T20:40:43.963Z","dependency_job_id":null,"html_url":"https://github.com/forecho/vagrant-centos-6.5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-centos-6.5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-centos-6.5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-centos-6.5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fvagrant-centos-6.5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forecho","download_url":"https://codeload.github.com/forecho/vagrant-centos-6.5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251302749,"owners_count":21567599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:55:20.172Z","updated_at":"2026-01-24T00:54:38.559Z","avatar_url":"https://github.com/forecho.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"打造自己的 vagrant 开发环境\n================\n\n## 包括以下环境和软件：\n\n- Nginx 1.4.4\n- Mysql 5.6.21\n- PHP 5.5.7\n- phpmyadmin 4.1.8\n- php-memcache 扩展\n- git\n- [autojump](https://github.com/joelthelion/autojump)\n- [composer](https://getcomposer.org)\n- vim\n\n\n## 关于 nginx 的使用\n\n默认这个 box 我已经配置好 LNMP 环境了。PHP 的项目直接放在当前文件夹的 `php` 文件夹内就可以了。（默认配置的是 php 文件夹，如果要换其他文件夹，请自行修改 nginx 的 dev.conf 文件的配置）\n\n示例：\n\n```\n根目录\n\t|--php\n\t\t|--cai\n\t\t\t|--zheng\n\t\t\t\t|--hai\n\t\t|--getyii\n\t\t\t|--frontend\n\t\t\t\t|--web\n```\n\n默认我使用的是 `*.dev.com` 作为域名。\n\n只要在**本机（一般是 Windows 系统）**的 hosts 文件，添加一下代码：\n\n```\n……\n192.168.33.10\tcai.dev.com\n192.168.33.10\tcai-zheng-hai.dev.com\n192.168.33.10\tgetyii-frontend-web.dev.com\n……\n```\n\n**注意**\n- 因为是虚拟机，所以添加 hosts 这一步是必须的。\n- 域名只做了三层解析，太多层觉得没必要。也就是说URL `cai-zheng-hai-open.dev.com` 默认是不行的。\n \n\n\n## 关于MySQL\n\n默认用户名：root\n\n默认密码：root\n\nPS：如果以上密码启动不了，请查看[修改默认的数据库](/mysql_init.md)进行操作。\n\n## Box地址\n\n链接: \u003chttp://pan.baidu.com/s/1nt1hDMD\u003e 密码: ckg4（my-php.box 就是我自定义的box）\n\n\n## 参考文档\n\n- \u003chttp://ninghao.net/blog/2077\u003e\n- \u003chttps://github.com/astaxie/Go-in-Action/blob/master/ebook/zh/01.2.md\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fvagrant-centos-6.5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforecho%2Fvagrant-centos-6.5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fvagrant-centos-6.5/lists"}