初识Redmine

安装Redmine 2.3.2简记
官方文档参考网站: http://www.redmine.org/projects/redmine/wiki/RedmineInstall
参考movingboy资源:http://movingboy.iteye.com/blog/344463

* 预要求Ruby环境简述如下:

I. 安装Ruby 2.0.0
wget https://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
tar -xzvf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure
make
make install


安装了默认gems
引用
installing default gems: /usr/local/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
    bigdecimal 1.2.0
    io-console 0.4.2
    json 1.7.7
    minitest 4.3.2
    psych 2.0.0
    rake 0.9.6
    rdoc 4.0.0
    test-unit 2.0.0.0


II. 安装Rails
gem install rails -v=3.2.13


III. 剩下的安装官方Wiki RedmineInstall描述更加清楚!

* 链接Nginx和Webrick :
在Redmin安装目录下启动Webrick:
ruby script/rails server webrick -e production
将启动3000端口提供http服务。当然,你应该最好让他运行在后台
ruby script/rails server webrick -e production -d
-d参数保证你退出ssh shell,webrick仍然保持运行。

在Nginx里配置一个虚拟机,如:
upstream webrick{
  server 127.0.0.1:3000;
}
server {
  listen 80;
  server_name redmine.myhost.com
  root /home/wwwroot/redmine/public;
  location / {
    index index.php index.html index.shtml;
    proxy_pass http://webrick;
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header X-Real_IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$
  {
    expires 30d;
  }
}

就可以通过 http://redmine.myhost.com来访问redmine了

* Redmine Wiki使用简记:
书写php代码一例
<pre><code class="php">
<?php
echo 'Hello this is php';
</code>
</pre>



猜你喜欢

转载自koda.iteye.com/blog/1129102
今日推荐