初识Redmine

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

[b][size=medium]* 预要求Ruby环境简述如下:[/size]
[/b]
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
[quote]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[/quote]

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


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

[b][size=medium]* 链接Nginx和Webrick :[/size][/b]
在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了

[b][size=medium]* Redmine Wiki使用简记:[/size][/b]
书写php代码一例

<pre><code class="php">
<?php
echo 'Hello this is php';
</code>
</pre>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值