5、Redmine安装
# wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz # tar zxvf redmine-0.8.4.tar.gz # mv redmine-0.8.4 /usr/local/redmine # cd /usr/local/redmine/config 设置数据库参数
# cp database.yml.example database.yml
# vi database.yml
production:
adapter: mysql
database:redmine
host: localhost
username: redmineuser
password: redminepw
encoding: utf8
保存退出:wq
6. 创建mysql数据库
# wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
# tar zxvf mysql-5.0.22.tar.gz
# cd mysql-5.0.22
# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data/ --without-innodb --without-debug --with-extra-charsets=gbk --with-extra-charsets=all --enable-assembler --with-pthread --enable-thread-safe-client --with-client-ldflags=-all-static
配置成功出现“Thank you for choosing MySQL!”提示。
# make && make install
Mysql配置
# cp ./support-files/mysql.server /etc/init.d/mysql
# groupadd mysql
# useradd –g mysql mysql
# chmod 777 /etc/init.d/mysql
# /usr/local/mysql/bin/mysql_install_db
# chown -R mysql:mysql /usr/local/mysql/data/ 启动Mysql
# service mysql start
# /usr/local/mysql/bin/mysqladmin –u root –p password 'rootpw' //设置密码为rootpw
Enter password: //默认密码为空,所以直接回车
# /usr/local/mysql/bin/mysql –u root –p
Enter password: //输入新密码后,登录成功
# /usr/local/mysql/bin/mysql -u root -p
Mysql> create database redmine default character set utf8;
grant all on redmine.* to root;
grant all on redmine.* to root@localhost;
grant all on redmine.* to redmineuser;
grant all on redmine.* to redmineuser @localhost;
set password for redmineuser@localhost=password('redminpw');
Mysql>exit;