https://github.com/forecho/vagrant-centos-6.5
我的虚拟机
https://github.com/forecho/vagrant-centos-6.5
Last synced: 6 months ago
JSON representation
我的虚拟机
- Host: GitHub
- URL: https://github.com/forecho/vagrant-centos-6.5
- Owner: forecho
- Created: 2015-05-14T02:30:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-31T05:46:21.000Z (almost 11 years ago)
- Last Synced: 2025-02-16T16:55:47.086Z (over 1 year ago)
- Size: 1.8 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
## 参考文档
-
-