- Redmine 설치
- OS : Centos 6.9
- 설치버전 : 3.4.6
- Ruby 버전 : 2.5.1
- CentOS
- SElinux disable
- SELINUX의 값을 disabled로 변경
- 수정 후 리부팅
- 리부팅 후 SELinux가 disabled 인지 확인
- 방화벽등록
- iptables 수정
- 네트워크 재시작
- 의존 패키지 설치
- mysql 설정
- redmine 설치
- redmine 서버 기동
#> vi /etc/sysconfig/selinux
#> reboot
#> getenforce
#> iptables -I INPUT 1 -p tcp --dport 3000 -j ACCEPT
#> service iptables save
#> service iptables restart
#> /etc/init.d/iptables restart
#> yum groupinstall "Development Tools"
#> yum install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel
#> yum install mysql-server mysql-devel
#> yum install httpd httpd-devel
#> yum install ImageMagick ImageMagick-devel
#> yum install wget
#> wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz
#> tar zxvf ruby-2.5.1.tar.gz
#> cd ruby-1.9.3-p194
#> ./configure --disable-install-doc
#> make
#> make install
#> make clean
#> ruby -v
ruby 2.5.1p57
#> gem install bundler --no-rdoc --no-ri
#> vi /etc/my.conf
다음내용 추가
default-character-set=utf8
character-set-server=utf8
#>/etc/init.d/mysqld start
#> chkconfig mysqld on
#> mysql -u root
mysql> CREATE DATABASE db_redmine CHARACTER SET utf8;
mysql> CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
mysql > flush privuleges;
mysql > exit;
#> wget http://www.redmine.org/releases/redmine-3.4.6.tar.gz
#> tar xvf redmine-3.4.6.tar.gz
#> mv redmine-3.4.6 /var/lib
#> cd /var/lib
#> ln -s ./redmine-3.4.6 redmine
#> cd /redmine/config
#> cp database.yml.example database.yml
#> vi database.yml
아래와 같이 편집
production:
adapter: mysql2
database: db_redmine
host: localhost
username: redmine
password: "password"
encoding: utf8
#> cp configuration.yml.example configuration.yml
#> vi configuration.yml
아래와 같이 편집
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: “localhost”
port: 25
domain: ’example.com’
#> gem install bundler
#> bundle install --without development test
#> bundle exec rake generate_secret_token
#> RAILS_ENV=production rake db:migrate
#> RAILS_ENV=production REDMINE_LNAG=ko bundle exec rake redmine:load_default_data
redmine 디렉토리에서 다음 실행
#> ruby bin/rails server webrick -e production -b server_ip -d
'개발개발' 카테고리의 다른 글
Centos 에서 GitLab 설치하기 (0) | 2018.08.21 |
---|---|
CentOS에 NginX 설치하기 (0) | 2018.08.20 |
CentOS 6.9 최소 설치후 네트워크 작업 (0) | 2018.08.13 |
npm 에서 --save 의미는 (0) | 2018.08.02 |
Tomcat8 클러스터링 (0) | 2018.07.02 |