티스토리 뷰

OS/Linux

CentOS7 redmine 설치

엘키 2016. 8. 20. 15:32

CentOS7 Redmine 설치

방화벽 개방

  • ​firewall-cmd --permanent --zone=public --add-port=3000/tcp

  • firewall-cmd --reload

GCC 설치

  • yum -y install gcc cpp gcc-c++ compat-gcc-34 gcc-gfortran flex

Ruby와 Passenger 빌드에 필요한 헤더파일

  • yum install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel

Mysql과 헤더파일

  • yum install mysql-server mysql-devel

Apache과 헤더파일

  • yum install httpd httpd-devel

ImageMagick과 헤더파일

  • yum install ImageMagick ImageMagick-devel


Ruby설치



Bundler 설치

  • gem install bundler --no-rdoc --no-ri

redmine 설치 3.16 안정화버젼이라서 이거 선택함

  • wget http://www.redmine.org/releases/redmine-3.1.6.tar.gz #/usr/local 에서 작업중

  • tar zxvf redmine-3.1.6.tar.gz

  • mv redmine-3.1.6 /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: redmine

password: redmine

encoding: utf8

Gem Package 설치

  • bundle install --without development test

테이블 생성 및 초기 데이터 입력

  • cd /usr/local/redmine 으로 이동하

  • rake generate_secret_token

  • RAILS_ENV=production rake db:migrate

  • RAILS_ENV=production rake redmine:load_default_data

    • #한국어 ko 입력

구동

  • bundle exec rails server webrick -e production -d -b 0.0.0.0

    • 데몬으로 실행 여기까지 끝


FAQ

  • 설치 중에 bundle install 시 에러 내용을 자세히 보면 마지막 문구에 뭐를 설치하라고 gem 뭐뭐뭐 이렇게 명령어 나오는데 복사해서 그걸 그대로 입력해서 설치 후 bundle install 다시 실행해야 한다. bundle인스톨은 /usr/local/redmine 에서 해야 한다

  • gem 인스톨 안될시에 gem query --remote -n 이름-d -a 이 명령어로 버젼 높은걸로 찾아서 인스톨

redmine 테마

  • /usr/local/redmine/public/theme 이쪽폴더에 넣고 재시작

redmine 플러그인

  • /usr/local/redmine/plugins 폴더에 넣고 /usr/local/redmine 에서 하단을 실행하여 플러그인을 추가해야한다.

  • bundle install --without development test

  • rake redmine:plugins:migrate RAILS_ENV=production

redmine 구글이용하여 메일보내기

  • cd /usr/local/redmine/config #에서 configuration.yml.example 을 configuration.yml로 만든후

  • vi configuration.yml #들어가서

production:

   email_delivery:

   delivery_method: :smtp

   smtp_settings:

   enable_starttls_auto: true

   address: "smtp.gmail.com"

   port: 587

   domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps

   authentication: :plain

   user_name: "계정명@gmail.com"

   password: "비밀번호”

    rmagick_font_path: /usr/share/fonts/nanumfont/NanumGothic.ttf


  • 이렇게 해도 메일이 안 보내지는 이유는 구글 계정에 대한 보안 설정 오류 일 가능성이 높음.


Redmine 관리


'OS > Linux' 카테고리의 다른 글

CentOS7 MySQL 설치  (0) 2016.08.20
CentOS 7 rails 서버 세팅  (0) 2016.02.08
CentOS 7 FTP 서버  (0) 2016.02.08
윈도우 서버에서 리눅스 서버로의 감상  (0) 2015.11.15
Cent OS 7 svn 설치  (0) 2015.11.13
댓글