您好,登錄后才能下訂單哦!
gcc編譯環境:
yum -y install gcc
其他組件:
yum install flex autoconf zlib curl zlib-devel curl-devel bzip2 bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel gcc+ gcc-c++ libxml2 libxml2-devel libxslt libxslt-devel
安裝libyaml-0.1.4
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure --prefix=/usr/local make make install
安裝libyaml-devel
安裝源
//32位系統 su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' //64位系統 su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
安裝libyaml-devel
yum install libyaml-devel
安裝
yum install mysql mysql-server mysql-devel //啟動mysql service mysqld start/stop/restart //修改mysql密碼 mysqladmin -uroot password 'new-password' //命令行登錄 mysql -uroot -p
創建數據庫
CREATE DATABASE redmine CHARACTER SET utf8;
安裝
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p547.tar.gz tar zxvf ruby-1.9.3-p547.tar.gz cd ruby-1.9.3-p547 ./configure --prefix=/usr/local/ruby --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib --with-openssl make make install
測試
ruby -v ruby 1.9.3p547 (2014-05-14) [x86_64-linux] gem --version 1.8.23.2
環境
vim /etc/profile //在末尾添加 RUBY_HOME=/usr/local/ruby PATH=$PATH:$RUBY_HOME/bin export RUBY_HOME PATH //保存退出,操作:ESC -> :wq //確認成效,source /etc/profile
ROOT環境
alternatives --install /usr/bin/ruby ruby /usr/local/ruby/bin/ruby 300 alternatives --install /usr/bin/gem gem /usr/local/ruby/bin/gem 300
安裝指定版本
gem install rails -v "3.2.17" -V
安裝
gem install bundler -V
配置
alternatives --install /usr/bin/bundle bundle /usr/local/ruby/bin/bundle 300
安裝準備
yum install ImageMagick-devel
下載
wget http://www.redmine.org/releases/redmine-2.5.1.tar.gz tar zxvf redmine-2.5.1.tar.gz mv redmine-2.5.1 redmine cd redmine/config
修改數據庫配置文件
//修改配置信息文件 cp database.yml.example database.yml //進入修改 vim database.yml
文件內容如下修改
production: adapter:mysql2 database:redmine host:localhost username:redmine password:my_password port:3306 development: adapter:mysql2 database:redmine host:localhost username:redmine password:my_password port:3306
安裝ruby組件
//進入redmine根目錄,bundle執行注意不要使用root權限執行 bundle install --without development test
生成密鑰
rake generate_secret_token
初始化數據庫(如果已經有數據庫結構,可以忽略此部)
RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_data
構建文件結構以及權限
mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets
運行
默認 admin,admin
賬號密碼
ruby script/rails server webrick -e production -p 3000 // 打開瀏覽器 http://localhost:3000
http://www.redmine.org/projects/redmine/wiki/RedmineInstall/
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。