LINUX
2019.05.27 / 24:48

[Centos7] redmine ¼³Ä¡

Źµ¹ÀÌ°³¹ßÀÚ
Ãßõ ¼ö 169

[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¼³Ä¡
# ¼Ò½º´Ù¿î·Îµå
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Á¤µµ??



Ãâó: https://pstree.tistory.com/28?category=642347 [Hello World!! PsTree]


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¿¬µ¿



Ãâó: https://pstree.tistory.com/28?category=642347 [Hello World!! PsTree]