您好,欢迎访问一九零五行业门户网

Ubuntu 12.04安装Redmine 2.4.2

官方安装文档参考: http://www.redmine.org/projects/redmine/wiki/redmineinstall 首先安装mysql, 参考: http://blog.csdn.net/csfreebird/article/details/6928733 创建redmin数据库和用户 mysql -u root -p create database redmine character set utf8
官方安装文档参考:
http://www.redmine.org/projects/redmine/wiki/redmineinstall
首先安装mysql, 参考:
http://blog.csdn.net/csfreebird/article/details/6928733
创建redmin数据库和用户
mysql -u root -p 
create database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost';
现在下载redmine 2.4.2代码:
wget http://www.redmine.org/releases/redmine-2.4.2.tar.gztar zxvf redmine-2.4.2.tar.gz
安装ruby1.9.3apt-get install ruby1.9.3
配置数据库, cd configcp database.yml.example database.yml
编辑database.ymlproduction: adapter: mysql2 database: redmine host: localhost username: redmine password: your_pwd encoding: utf8
下面在redmine-2.4.2目录下执行命令安装gem的依赖项:root@test:/usr/src/redmine-2.4.2# gem install bundlerfetching: bundler-1.5.2.gem (100%)successfully installed bundler-1.5.21 gem installedinstalling ri documentation for bundler-1.5.2...installing rdoc documentation for bundler-1.5.2...
现在安装redmine依赖项
bundle install --without development test
遇到一个错误:an error occurred while installing mysql2 (0.3.14), and bundler cannot continue. make sure that `gem install mysql2 -v '0.3.14'` succeeds before bundling.
用下面的命令修复:apt-get install mysql-clientapt-get install libmysqlclient-dev
gem install mysql2 -v '0.3.14'
再次运行redmine安装命令:bundle install --without development test
得到新的错误信息:an error occurred while installing rmagick (2.13.2), and bundler cannot continue. make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.
用下面的命令修复:apt-get install libmagickcore-dev libmagickwand-dev
执行下面的命令完成安装:rake generate_secret_tokenrails_env=production rake db:migraterails_env=production rake redmine:load_default_datamkdir -p tmp tmp/pdf public/plugin_assetschown -r 777 files log tmp public/plugin_assetschmod -r 755 files log tmp public/plugin_assets
启动服务用于测试:root@test:/usr/src/redmine-2.4.2# ruby script/rails server webrick -e production=> booting webrick=> rails 3.2.16 application starting in production on http://0.0.0.0:3000=> call with -d to detach=> ctrl-c to shutdown server[2014-01-11 18:49:18] info webrick 1.3.1[2014-01-11 18:49:18] info ruby 1.9.3 (2011-10-30) [x86_64-linux][2014-01-11 18:49:18] info webrick::httpserver#start: pid=10173 port=3000started get / for 119.80.97.56 at 2014-01-11 18:49:35 +0800processing by welcomecontroller#index as html current user: anonymous rendered welcome/index.html.erb within layouts/base (36.7ms)completed 200 ok in 437.0ms (views: 145.0ms | activerecord: 16.7ms)
用浏览器访问一下,可以看到redmine的站点了。默认管理员帐号是admin=admin
其它类似信息

推荐信息