免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 23262 | 回复: 1

======[已解决]安装redmine问题之三====== [复制链接]

论坛徽章:
7
操作系统版块每日发帖之星
日期:2015-06-16 22:20:00IT运维版块每日发帖之星
日期:2015-06-17 22:20:00IT运维版块每周发帖之星
日期:2016-01-07 23:04:26操作系统版块每日发帖之星
日期:2016-05-17 06:20:00操作系统版块每日发帖之星
日期:2016-05-21 06:20:00操作系统版块每日发帖之星
日期:2016-07-05 06:20:0015-16赛季CBA联赛之广东
日期:2017-07-13 16:08:03
发表于 2014-06-17 14:22 |显示全部楼层
本帖最后由 奋斗的毛毛虫 于 2014-06-17 14:29 编辑

解决方法:



[root@localhost script]# pwd
/var/www/html/redmine-2.5.1/script
[root@localhost script]# /var/www/html/redmine-2.5.1/script/rails server
=> Booting WEBrick
=> Rails 3.2.17 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect': Unknown database 'redmine_development' (Mysql2::Error)
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
        from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'




论坛徽章:
7
操作系统版块每日发帖之星
日期:2015-06-16 22:20:00IT运维版块每日发帖之星
日期:2015-06-17 22:20:00IT运维版块每周发帖之星
日期:2016-01-07 23:04:26操作系统版块每日发帖之星
日期:2016-05-17 06:20:00操作系统版块每日发帖之星
日期:2016-05-21 06:20:00操作系统版块每日发帖之星
日期:2016-07-05 06:20:0015-16赛季CBA联赛之广东
日期:2017-07-13 16:08:03
发表于 2014-06-17 14:29 |显示全部楼层
gem install sqlite3-ruby -V
gem install webrick -V
gem list

[root@localhost redmine-2.5.1]# mysql -A
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database redmine_development character set utf8;
Query OK, 1 row affected (0.00 sec)

mysql> show databases;
+---------------------+
| Database            |
+---------------------+
| information_schema  |
| mysql               |
| redmine             |
| redmine_development |
| test                |
+---------------------+
5 rows in set (0.00 sec)

mysql>

[root@localhost script]# /var/www/html/redmine-2.5.1/script/rails server webrick -e production
=> Booting WEBrick
=> Rails 3.2.17 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2014-06-17 14:21:38] INFO  WEBrick 1.3.1
[2014-06-17 14:21:38] INFO  ruby 1.9.3 (2012-04-20) [x86_64-linux]
[2014-06-17 14:21:38] INFO  WEBrick::HTTPServer#start: pid=20391 port=3000
Started GET "/" for 192.168.8.170 at 2014-06-17 14:21:59 +0800
Processing by WelcomeController#index as HTML
  Current user: anonymous
  Rendered welcome/index.html.erb within layouts/base (985.3ms)
Completed 200 OK in 2029.8ms (Views: 1170.8ms | ActiveRecord: 144.9ms)


浏览器URL:
192.168.1.205:3000

盼星星盼月亮,终于把redmine页面盼出来啦!!!


您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP