A. Ruby 설치
– repository 조회
grep -B1 -i optional /etc/yum.repos.d/*
– optional source 아닌 repository 탐색 하여 enable
yum-config-manager --enable <repo-id>
sudo yum makecache
– 필요한 패키지 인스톨
yum -y install gcc mysql-devel ruby-devel rubygems
sudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
sudo yum install ruby-rdoc ruby-devel
B. git 설치
yum install perl-devel yum install perl-CPAN
# C compiler install
yum groupinstall 'Development Tools'
# yum install curl-devel expat-devel gettext-devel \
openssl-devel zlib-devel
$ tar -zxf git-1.7.2.2.tar.gz
$ cd git-1.7.2.2
$ make prefix=/usr/local all
$ sudo make prefix=/usr/local install
C. MySQL 설치
-이동 : https://dev.mysql.com/downloads/repo/ -다운로드 : mysql57-community-release-el7-8.noarch.rpm -repository 설치 : # yum localinstall mysql57-community-release-el7-8.noarch.rpm -repository 설정 확인 : # yum repolist enabled | grep "mysql*-community*" -MySql 설치 : yum --disablerepo=\* --enablerepo='mysql*-community*' install mysql-server
E. 의존성 설치
gem install ruby-openid
yum install ImageMagick-devel -y
F. DB 설정
# service mysqld start # service mysqld status # grep 'temporary password' /var/log/mysqld.log # mysql -u root -p mysql> SET PASSWORD = PASSWORD('xxxxxxxxxxxx'); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CREATE DATABASE redmine CHARACTER SET utf8; Query OK, 1 row affected (0.00 sec) mysql> CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'xxxxxxx'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; Query OK, 0 rows affected (0.00 sec)
참조 : http://stackoverflow.com/questions/33510184/change-mysql-root-password-on-centos7
E. RedMine 설치
– 참조 사이트
https://www.easyredmine.com/resources/installation/custom-installation
$ gem install redmine-installer
$ wget http://www.redmine.org/releases/redmine-3.2.3.zip
$ redmine install redmine-3.2.3.zip
- 진행을 하면 입력란이 아래와 같이 순서대로 나옵니다. 아까 만들었던 DB 정보를 참조하여 넣어 줍니다.
1) Redmine Root – you need to define a folder where Redmine will be installed
2) Load Package
3) Database configuration – definition of database type (MySQL of PostgreSQL)
4) E-mail configuration
5) Installation
6) Moving Redmine – Redmine is moved to the defined root (step 1)
7) Webserver configuration
– 입력 내용 예
Database: redmine Host [localhost]: localhost Username: root Password: Encoding [utf8]: utf8 Port [3306]: 3306
- 나중에 변경을 원할 경우 아래 파일 수정
redmin/config/database.yml