Centos install Redmine
# 安裝 http php mysql 套件
yum -y install httpd httpd-devel mysql mysql-devel mysql-server php php-mysql php-mbstring php-mcrypt php-gd
# Mysql 啟動
chkconfig mysqld on
/etc/init.d/mysqld start
# Bind 安裝
chkconfig named on
/etc/init.d/named start
# SMTP POP3 安裝
chkconfig smtp on; chkconfig dovecot on
/etc/init.d/postfix start
/etc/init.d/dovecot start
# BIND 安裝 與 設定 請參閱 Centos 5 install BIND
# SMTP 與 Dovecot 安裝 與 設定 請參閱 Centos 安裝 Postfix + Dovecot
# Ruby install
ftp ftp.ruby-lang.org
anonymous
cd /pub/ruby/1.8
get ruby-1.8.7-p334.tar.gz
quit
tar -zxvf ruby-1.8.7-p334.tar.gz ruby-1.8.7-p334
cd ruby-1.8.7-p334
./configure
make
make install
# RubyGem install
cd /opt
wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz
tar -zxvf rubygems-1.4.2.tgz
ruby ./rubygems-1.4.2/setup.rb
ruby -v
gem -v
# Redmine 主程式下載
cd /var/www/html
wget http://rubyforge.org/frs/download.php/74722/redmine-1.1.3.tar.gz
tar -zxvf redmine-1.1.3.tar.gz
mv redmine-1.1.3 ./redmine
# Bundler & Gemfile
gem install bundler
cd redmine
vim Gemfile
# 貼上以下文字...
source :rubygems
source "http://rubygems.org"
source :rubyforge
source "http://gems.rubyforge.org"
source :gemcutter
source "http://gemcutter.org"
gem "rake", "0.8.3"
gem "rack", "1.0.1"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"
gem "coderay", "~>0.9.7"
:wq
# Rails install
gem install rails -v=2.3.11 --no-ri --no-rdoc
gem install i18n -v=0.4.2 --no-ri --no-rdoc
gem install mysql --no-ri --no-rdoc
gem install cgi_multipart_eof_fix --no-ri --no-rdoc
gem install coderay --no-ri --no-rdoc
# bundle install
cd /var/www/html/redmine
bundle install
# Create Database
mysql -u root -p
create database redmine character set utf8;
exit
# Redmine setting
cp /var/www/html/redmine/config/database.yml.example /var/www/html/redmine/config/database.yml
cd /var/www/html/redmine
RAILS_ENV=production bundle exec rake generate_session_store
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data
選: zh-TW
# 設定 email.yml
cd /var/www/html/redmine/config
cp email.yml.example email.yml
vim email.yml
(SMTP 不驗證)
production:
delivery_method: :smtp
smtp_settings:
address: "localhost"
port: 25
domain: test.net ( 自訂 )
authentication: :none
( 因為 SMTP 不驗證 所以這兩筆註解掉 )
# user_name: "admin@test.net"
# password: "12345"
development:
delivery_method: :smtp
smtp_settings:
address: 127.0.0.1
port: 25
domain: test.net
authentication: :none
( 因為 SMTP 不驗證 所以這兩筆註解掉 )
# user_name: "admin@test.net"
# password: "12345"
# 設定執行redmine Script
vim /home/peter.peng/redmine.sh ( 訂redmine.sh )
#!/bin/bash
cd /var/www/html/redmine
ruby script/server -e production
登入方式
http://yourip:3000
添加 布景 在 redmin
沒有留言:
張貼留言