Giter VIP home page Giter VIP logo

my-centos-env's Introduction

My CentOS environment

A vagrant template to create CentOS VM for development environment

Features

  • Using CentOS 7.2
  • Auto install php-fpm v5.6
  • Auto install NGINX v1.10
  • Auto install Apache (httpd) v2.4
  • Auto install MariaDB v10.0
  • Auto install PostgreSQL v9.5
  • Auto install Redis v2.8
  • Auto install NodeJS v4.x
  • Auto install JDK v8
  • May be customize configuration
  • Protected web by basic authentication

Requirements

Installation

  1. Download latest version in here

  2. Edit your settings in Vagrantfile file

    my = {
      # basic configuration
      :cf_hostname              => "my-centos-env.dev" ,
      :cf_private_ip            => "10.10.10.10"       ,
      :cf_timezone              => "UTC"               ,
      :cf_private_key_path      => "./key/id_rsa"      ,
      :cf_public_key_path       => "./key/id_rsa.pub"  ,
      :cf_app_source_path       => "../source"         ,
      :cf_selinux_enabled       => false               ,
    
      # configuration for nginx or httpd service
      :cf_http_port             => 80                  ,
      :cf_http_user             => "apache"            ,
      :cf_http_group            => "apache"            ,
      :cf_https_enabled         => false               ,
      :cf_https_port            => 443                 ,
    
      # configuration for basic authentication
      :cf_basic_auth_enabled    => true                ,
      :cf_basic_auth_user       => "dev"               ,
      :cf_basic_auth_password   => "devpass"           ,
    
      # configuration for php-fpm service
      :cf_php_fpm_listen        => "127.0.0.1:9000"    ,
    
      # configuration for mysqld service
      :cf_mariadb_root_password => "rootpass"          ,
      :cf_mariadb_port          => 3306                ,
      :cf_mariadb_remote_access => true                ,
    
      # configuration for postgresql service
      :cf_postgresql_port          => 5432             ,
      :cf_postgresql_remote_access => true             ,
    
      # configuration for redis-server service
      :cf_redis_port            => 6379                ,
      :cf_redis_remote_access   => false               ,
      #:cf_redis_password        => false               ,
    
      # configuration for forwarded_port
      :cf_host_port_ssh         => 20022               ,
      :cf_host_port_http        => 20080               ,
      :cf_host_port_https       => 20443               ,
      :cf_host_port_mariadb     => 23306               ,
      :cf_host_port_postgresql  => 25432               ,
      :cf_host_port_redis       => 26379               ,
    }
  3. Run vagrant up and waiting

Usage

  1. Remote access by vagrant ssh

    $ vagrant ssh
    

Contributing

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

If you would like to help take a look at the list of issues.

License

This project is released under the MIT License.
Copyright © 2016 Oanh Nguyen

my-centos-env's People

Contributors

oanhnn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.