An open API service indexing awesome lists of open source software.

https://github.com/forecho/vagrant-centos-6.5

我的虚拟机
https://github.com/forecho/vagrant-centos-6.5

Last synced: 6 months ago
JSON representation

我的虚拟机

Awesome Lists containing this project

README

          

打造自己的 vagrant 开发环境
================

## 包括以下环境和软件:

- Nginx 1.4.4
- Mysql 5.6.21
- PHP 5.5.7
- phpmyadmin 4.1.8
- php-memcache 扩展
- git
- [autojump](https://github.com/joelthelion/autojump)
- [composer](https://getcomposer.org)
- vim

## 关于 nginx 的使用

默认这个 box 我已经配置好 LNMP 环境了。PHP 的项目直接放在当前文件夹的 `php` 文件夹内就可以了。(默认配置的是 php 文件夹,如果要换其他文件夹,请自行修改 nginx 的 dev.conf 文件的配置)

示例:

```
根目录
|--php
|--cai
|--zheng
|--hai
|--getyii
|--frontend
|--web
```

默认我使用的是 `*.dev.com` 作为域名。

只要在**本机(一般是 Windows 系统)**的 hosts 文件,添加一下代码:

```
……
192.168.33.10 cai.dev.com
192.168.33.10 cai-zheng-hai.dev.com
192.168.33.10 getyii-frontend-web.dev.com
……
```

**注意**
- 因为是虚拟机,所以添加 hosts 这一步是必须的。
- 域名只做了三层解析,太多层觉得没必要。也就是说URL `cai-zheng-hai-open.dev.com` 默认是不行的。

## 关于MySQL

默认用户名:root

默认密码:root

PS:如果以上密码启动不了,请查看[修改默认的数据库](/mysql_init.md)进行操作。

## Box地址

链接: 密码: ckg4(my-php.box 就是我自定义的box)

## 参考文档

-
-