Skip to content

Instantly share code, notes, and snippets.

@chengdh
Last active December 16, 2015 02:09
Show Gist options
  • Save chengdh/5360429 to your computer and use it in GitHub Desktop.
Save chengdh/5360429 to your computer and use it in GitHub Desktop.
在centos 上安装部署rails3环境

1. 在centos server上建立用户,并设置用户组

  1. 添加lmis用户
    以root用户登录,建立lmis用户
    adduser lmis
    修改lmis用户密码
    passwd lmis
  2. 将新建立的用户加到sudoer组中去
    修改/etc/sudoers文件,将lmis用户添加到文件中去,可参考add user to sudoers
  3. 将cenetos上的selinux disable
    参考how to:disable selinux on centos

2. 在centos server上安装支持库

yum install curl wget yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel
yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
yum install mysql-devel

安装apache服务器

yum install httpd

3. 在centos server上安装mysql-server及相关类库

yum install mysql-server

启动mysql

service mysql start

修改mysql-server root用户名密码,可参考mysql-server安装完毕后的提示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment