环境:
Ubuntu 13.10
bitnami-redmine-2.5.1-1-linux-x64-installer.run
用bitnami安装完redmine以后,有是否忘记了用户名和密码。但是又没有配置邮件服务器,无法找回密码。
只能去服务器更改了。更改步骤如下:
1. 修改 安装目录/redmin/apps/redmine/htdocs/config/database.yml,更对对应的用户名,密码,数据库地址,端口号
production:
adapter: mysql2
database: bitnami_redmine
host: 127.0.0.1
username: root
password: “”
port: 3307
encoding: utf8
socket: /home/hyadmin/redmin/mysql/tmp/mysql.sock
development:
adapter: mysql2
database: redmine_development
host: localhost
username: root
password: “”
encoding: utf8
# Warning: The database defined as “test” will be erased and
# re-generated from your development database when you run “rake”.
# Do not set this db to the same as development or production.
test:
adapter: mysql2
database: redmine_test
host: localhost
username: root
password: “”
encoding: utf8
2. 进入如下目录
cd 安装目录/redmin/apps/redmine/htdocs/script
3. 执行如下命令,进入ruby
./rails console production
4. 取得你要修改的用户对象(ruby>代表进入ruby环境)
ruby> admin_user = User.find_by_login(‘你要改的用户名’)
5.修改admin用户对象密码
ruby> admin_user.password = ‘你的密码’
注: 这个密码不能太短,否则报错。
6.保存admin用户对象信息
ruby> admin_user.save!
7.退出ruby环境
ruby> quit
这样应该就可以用yourpassword这个新密码登录系统了
最简化的Ubuntu 10.04下Redmine部署方法 http://www.linuxidc.com/Linux/2010-07/27076.htm
Ubuntu 10.04默认安装Redmine注意事项 http://www.linuxidc.com/Linux/2010-07/27075.htm
CentOS 5 下Redmine的安装及配置 http://www.linuxidc.com/Linux/2009-12/23311.htm
Ubuntu 9.10下搭建基于PostgreSQL的Redmine http://www.linuxidc.com/Linux/2009-11/22697.htm
Ubuntu中安装开源项目管理软件Redmine http://www.linuxidc.com/Linux/2008-03/11819.htm
如何将Turnkey Redmine 虚拟机从Redmine 1.0.5 升级到1.2 http://www.linuxidc.com/Linux/2011-09/42882.htm
CentOS5下进行Redmine环境搭建,邮件服务配置,LDAP配置 http://www.linuxidc.com/Linux/2013-04/83619.htm
Redmine 的详细介绍:请点这里
Redmine 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-07/104075.htm