分享 我的服务器配置脚本

iwinux · December 24, 2011 · Last by bindiry replied at February 04, 2012 · 2676 hits

将自己经常用到的服务器配置文件和操作整理成一个比较傻瓜的脚本,现在如果要在一台新的服务器上安装 Nginx + Ruby + MongoDB,只需在服务器上运行以下命令(假设以 root 用户登录):

apt-get update && apt-get upgrade
apt-get install git-core
git clone http://github.com/iwinux/server-bootstrap
cd server-bootstrap

./bootstrap deps # 安装依赖的包
./bootstrap user winus # 创建用户 winus (同时也会复制 git, screen, bash 等配置文件到 HOME 目录)
./bootstrap nginx # 从源码编译安装 Nginx 到 /opt/nginx,并设置自动启动
./bootstrap ruby winus # 安装 RVM 到用户 winus 的 HOME 目录,然后安装 Ruby 1.9.3
./bootstrap mongodb # 安装 MongoDB (默认是 64 位版本)

感谢分享。

You need to Sign in before reply, if you don't have an account, please Sign up first.