[Centos7] redmine 설치

#방화벽 3000포트 오픈
#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설치
# 소스다운로드
# http://www.ruby-lang.org/ko/downloads/
# http://cache.ruby-lang.org/pub/ruby/2.3/
cd /usr/local 
wget http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz
tar zxvf ruby-1.9.3-p194.tar.gz 
cd ruby-2.3.0
./configure --disable-install-doc
make
make install
make clean
ruby –v

# 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 #데몬으로 실행 여기까지 끝 localhost:3000 으로 접속
#아니면 서버 IP 지정할때
bundle exec rails server webrick -e production -b 서버IP -d #위에 방법 안될때 서버IP지정해서 데몬띠우거나

#설치중에 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
#production 에 위와같이 저장합시다
# 메일이 안보내지는 이유는 구글 계정에 대한 보안설정이 나오는데
https://www.google.com/settings/security/lesssecureapps
#여기서 보안수준 낮은거 설정하고 2차인증 설정하지 안해야지 메일보내집니다

#마지막
#redmine 사용해보니 2.x버젼이 개발된 플러그인이 더 많고 3.x버젼은 플러그인이 적용되는게 적을수 있습니다.
#다시 설치한다면 저는 2.x 버젼을 사용해볼까 생각합니다.. 2.6정도??

2016/06/21 - [리눅스/Linux 일반] - [Centos7] firewalld 방화벽 해제

2016/06/21 - [리눅스/Centos] - [Centos7] 나눔고딕 설치

2016/06/21 - [리눅스/Centos] - [Centos7] redmine plugins 추천

2016/06/20 - [리눅스/Centos] - [Centos7]redmine apache연동



'Operating System > Centos' 카테고리의 다른 글

[Centos7] redmine plugins 추천  (0) 2016.06.21
[Centos7] redmine apache연동  (0) 2016.06.20
[Centos7] apache, tomcat연동 ajp 이용  (0) 2016.06.20
[Centos7] tomcat8 설치  (0) 2016.06.20
[Centos7] mysql 설치  (0) 2016.06.20
블로그 이미지

pstree

pstree.. process...

,