"CentOS 레드마인 설치"의 두 판 사이의 차이

12번째 줄: 12번째 줄:
* [[gem install bundler]]
* [[gem install bundler]]
* [[yum install mysql-devel]]
* [[yum install mysql-devel]]
* [[yum install libcurl-devel]]
* [[yum install httpd-devel]]
* [[yum install ImageMagick ImageMagick-devel]]
* [[yum install ImageMagick ImageMagick-devel]]


104번째 줄: 106번째 줄:
Please configure your config/database.yml first
Please configure your config/database.yml first
... (생략)
... (생략)
Fetching roadie-rails 1.2.1
Installing roadie-rails 1.2.1
Fetching rails 4.2.7.1
Fetching rails 4.2.7.1
Installing rails 4.2.7.1
Installing rails 4.2.7.1
Bundle complete! 30 Gemfile dependencies, 70 gems now installed.
Bundle complete! 32 Gemfile dependencies, 71 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from yard:
--------------------------------------------------------------------------------
As of YARD v0.9.2:
RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:
    $ yard config --gem-install-yri
See `yard config --help` for more information on RubyGems install hooks.
You can also add the following to your .gemspec to have YARD document your gem
on install:
    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.
--------------------------------------------------------------------------------
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# bundle exec rake generate_secret_token
[root@zetawiki redmine]# bundle exec rake generate_secret_token
[root@zetawiki redmine]# bundle exec rake db:migrate RAILS_ENV=production
... (생략)
== 20160529063352 AddRolesSettings: migrating =================================
-- add_column(:roles, :settings, :text)
  -> 0.0100s
== 20160529063352 AddRolesSettings: migrated (0.0101s) ========================
</source>
</source>
==passenger 설치==
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# bundle exec rake generate_secret_token
[root@zetawiki redmine]# gem install passenger
Building native extensions.  This could take a while...
Successfully installed passenger-5.1.4
Parsing documentation for passenger-5.1.4
Done installing documentation for passenger after 22 seconds
1 gem installed
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# bundle exec rake db:migrate RAILS_ENV=production
[root@zetawiki redmine]# passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v5.1.4.
 
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
 
Here's what you can expect from the installation process:
 
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
 
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
 
Press Enter to continue, or Ctrl-C to abort.
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# gem install passenger --no-rdoc --no-ri
--------------------------------------------
 
Which languages are you interested in?
 
Use <space> to select.
If the menu doesn't display correctly, press '!'
 
‣ ⬢  Ruby
  ⬢  Python
  ⬡  Node.js
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# passenger-install-apache2-module
</source>
</source>



2017년 6월 2일 (금) 10:53 판

  다른 뜻에 대해서는 우분투 레드마인 설치 문서를 참조하십시오.
Crystal Clear action info.png 작성 중인 문서입니다.
How To Install Redmine
레드마인 설치하기

1 사전 작업

2 MySQL redmine DB 설정

Console
Copy
[root@zetawiki ~]# mysql -uroot -p
Enter password: P@ssw0rd
Console
Copy
mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.04 sec)

mysql> create user 'redmine'@'localhost' identified by 'P@ssw0rd';
Query OK, 0 rows affected (0.04 sec)

mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges; 
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

3 레드마인 설치

Console
Copy
[root@zetawiki ~]# wget http://www.redmine.org/releases/redmine-3.3.3.tar.gz
--2017-06-01 18:28:51--  http://www.redmine.org/releases/redmine-3.3.3.tar.gz
Resolving www.redmine.org... 46.4.36.71
Connecting to www.redmine.org|46.4.36.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2366378 (2.3M) [application/x-gzip]
Saving to: “redmine-3.3.3.tar.gz”

100%[=================================================>] 2,366,378    641K/s   in 3.6s    

2017-06-01 18:28:56 (641 KB/s) - “redmine-3.3.3.tar.gz” saved [2366378/2366378]
Console
Copy
[root@zetawiki ~]# tar xvzf redmine-3.3.3.tar.gz
... (생략)
redmine-3.3.3/extra/sample_plugin/init.rb
redmine-3.3.3/extra/mail_handler/
redmine-3.3.3/extra/mail_handler/rdm-mailhandler.rb
Console
Copy
[root@zetawiki ~]# mv redmine-3.3.3/ /var/www/redmine
[root@zetawiki ~]# cd /var/www/redmine/
[root@zetawiki redmine]# ll
total 84
drwxrwxr-x  6 1000 1000 4096 Apr  9 17:46 app
-rw-rw-r--  1 1000 1000  851 Apr  9 17:47 appveyor.yml
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 bin
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 config
-rw-rw-r--  1 1000 1000  160 Apr  9 17:47 config.ru
-rw-rw-r--  1 1000 1000  241 Apr  9 17:47 CONTRIBUTING.md
drwxrwxr-x  3 1000 1000 4096 Apr  9 17:47 db
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 doc
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 extra
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 files
-rw-rw-r--  1 1000 1000 3934 Apr  9 17:47 Gemfile
drwxrwxr-x  7 1000 1000 4096 Apr  9 17:47 lib
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 log
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 plugins
drwxrwxr-x  8 1000 1000 4096 Apr  9 17:47 public
-rw-rw-r--  1 1000 1000  275 Apr  9 17:47 Rakefile
-rw-rw-r--  1 1000 1000  205 Apr  9 17:47 README.rdoc
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 script
drwxrwxr-x 10 1000 1000 4096 Apr  9 17:46 test
drwxrwxr-x  9 1000 1000 4096 Apr  9 17:47 tmp
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 vendor

4 레드마인 설정

Console
Copy
[root@zetawiki redmine]# vi config/database.yml
yaml
Copy
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "P@ssw0rd"
  encoding: utf8
Console
Copy
[root@zetawiki redmine]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your
bundle as root will break this application for all non-root users on this machine.
Please configure your config/database.yml first
... (생략)
Fetching roadie-rails 1.2.1
Installing roadie-rails 1.2.1
Fetching rails 4.2.7.1
Installing rails 4.2.7.1
Bundle complete! 32 Gemfile dependencies, 71 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from yard:
--------------------------------------------------------------------------------
As of YARD v0.9.2:

RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:

    $ yard config --gem-install-yri

See `yard config --help` for more information on RubyGems install hooks.

You can also add the following to your .gemspec to have YARD document your gem
on install:

    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.

--------------------------------------------------------------------------------
Console
Copy
[root@zetawiki redmine]# bundle exec rake generate_secret_token
[root@zetawiki redmine]# bundle exec rake db:migrate RAILS_ENV=production
... (생략)
== 20160529063352 AddRolesSettings: migrating =================================
-- add_column(:roles, :settings, :text)
   -> 0.0100s
== 20160529063352 AddRolesSettings: migrated (0.0101s) ========================

5 passenger 설치

Console
Copy
[root@zetawiki redmine]# gem install passenger
Building native extensions.  This could take a while...
Successfully installed passenger-5.1.4
Parsing documentation for passenger-5.1.4
Done installing documentation for passenger after 22 seconds
1 gem installed
Console
Copy
[root@zetawiki redmine]# passenger-install-apache2-module 
Welcome to the Phusion Passenger Apache 2 module installer, v5.1.4.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.
Console
Copy
--------------------------------------------

Which languages are you interested in?

Use <space> to select.
If the menu doesn't display correctly, press '!'

 ‣ ⬢  Ruby
   ⬢  Python
   ⬡  Node.js
Console

6 아파치 설정

  • passenger 모듈 설정
Console
Copy
[root@zetawiki redmine]# vi /etc/httpd/conf.d/passenger.conf
Console
Copy
[root@zetawiki redmine]# chown -R apache. /var/www/redmine 
[root@zetawiki redmine]# service httpd restart

7 같이 보기

8 참고 자료