# centos4dev **Repository Path**: Vkits/centos4dev ## Basic Information - **Project Name**: centos4dev - **Description**: dev box base centos 7 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-04-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # centos4dev dev box base centos 7 使用[packer](https://www.packer.io)打包生成 目前只支持virtualbox的box文件生成,使用[ansible](https://www.ansible.com/)安装mysql、redis、java8和docker 使用前提: 1、确保已经安装[virtualbox](https://www.virtualbox.org) 2、确保已经安装[vagrant](https://www.vagrantup.com) 3、确保已经安装[packer](https://www.packer.io) 4、确保在iso目录中存在CentOS-7-x86_64-Minimal-1708.iso文件,目录结构如下: drwxr-xr-x 15 ethan-liu staff 480B 4 2 11:52 centos4dev drwxr-xr-x 3 ethan-liu staff 96B 3 30 17:12 iso 使用步骤: 1、 git clone 本项目 2、在项目路径下git clone https://gitee.com/Vkits/ansible-playbooks.git 3、项目路径下执行: packer build -only=virtualbox-iso -var-file=centos7.json centos.json 4、build完成后导入生成的box文件: vagrant box add --name centos-dev box/virtualbox/centos7-0.0.99.box 5、新建vagrant目录,如: mkdir devbox & cd devbox 6、初始化: vagrant init centos-dev 7、启动: vagrant up 虚拟机默认IP为192.168.33.66 Mysql连接信息如下: 192.168.33.66 lib / lib88888 默认已创建数据库名为: lib Redis请连接 192.168.33.66:6379, 默认无密码