Giter VIP home page Giter VIP logo

init.d's Introduction

   ______              __           __
  /\__  _\          __/\ \__       /\ \
  \/_/\ \/     ___ /\_\ \ ,_\      \_\ \
     \ \ \   /' _ `\/\ \ \ \/      /'_` \
      \_\ \__/\ \/\ \ \ \ \ \_  __/\ \L\ \
      /\_____\ \_\ \_\ \_\ \__\/\_\ \___,_\
      \/_____/\/_/\/_/\/_/\/__/\/_/\/__,_ /

Batch scripts for Ruby production environment install on Ubuntu Server.

系统要求

  • Ubuntu Server 14.04, 16.04

前提

大多数情况下,服务器部署不应用root账户直接进行操作,所以如果你的服务器本身未创建非root账户(如ubuntu),你应该先创建一个非root账户。

注意将ubuntu替换成你希望创建的用户名。

adduser ubuntu

输入密码,确认密码后,一路回车即可创建成功。接下来,再将该账户设为sudo用户组,让它可以进行高级操作。

usermod -aG sudo username

系统标配

安装系统常见需要的基本软件包,包括中文环境、Node.js、imagemagick、git、zsh、vim、unzip、htop及编译基础库。

sudo apt-get update
sudo apt-get install -y curl
curl -sSL https://git.io/vbq1p | bash

安装 Nginx

Nginx official package

curl -sSL https://git.io/vbqMG | bash

安装 RVM + Ruby

curl -sSL https://git.io/vbqM8 | bash

Default Use Ruby China mirror site for RubyGems and Ruby

安装数据库

PostgreSQL (9.6)

curl -sSL https://git.io/vbqQn | bash

MySQL (5.6)

curl -sSL https://git.io/vbqQO | bash

MongoDB

curl -sSL https://git.io/vbqME | bash

Redis

curl -sSL https://git.io/vbqMo | bash

其他

ElasticSearch

curl -sSL https://git.io/vbqM5 | bash

Docker

该脚本除了 Docker 外还会一同安装 Docker Compose

curl -sSL https://git.io/vbqMj | bash
sudo docker info

init.d's People

Contributors

huacnlee avatar cestivan avatar kevyu avatar shuke0327 avatar nowa avatar xlgwr avatar shenqihui avatar

Watchers

James Cloos 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.