- 安装redmie
# yum -y install gcc gcc-c++ zlib-devel curl-devel openssl-devel apr-devel apr-util-devel mysql-server mysql-devel libxml2 libxml2-devel libxslt libxslt-devel git svn ImageMagick-devel
# cd ~/Downloads
# wget
http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
# tar -zxvf ruby-1.9.3-p484.tar.gz -C /usr/src/
# cd /usr/src/ruby-1.9.3-p484/
# ./configure
# make && make install
# cd ~/Downloads
# tar -zxvf yaml-0.1.4.tar.gz -C /usr/src/
# cd /usr/src/yaml-0.1.4/
# ./configure
# make && make install
mysql> grant
# cd ~/Downloads
# tar -zxvf rubygems-2.1.7.tgz -C /usr/src/
# cd /usr/src/rubygems-2.1.7/
# ruby setup.rb
# gem install bundler mysql mysql2
下载redmine并解压到/var/www/redmine
-------------------------------------------------------------------------------
git方式下载:
# cd /var/www
# git clone git://github.com/redmine/redmine.git
# git tag
# git checkout 2.3.2
-------------------------------------------------------------------------------
进入redmine根目录(若安装过程出现卡顿或错误可重新执行以便继续安装)
# bundle install --without development test
安装完成后会出现以下提示:
Your bundle is complete!
Gems in the groups development, test, postgresql, sqlite and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Gems in the groups development, test, postgresql, sqlite and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
# chkconfig mysqld on
# service mysqld start
# /usr/bin/mysql_secure_installation // 设置root密码,其余选项按默认即可
# mysql -u root -p
mysql> create database redmine character set utf8;
mysql> create user 'redmine-usr'@'localhost' identified by '123456';
mysql> grant