管理人の覚書 <
Redmine
をテンプレートにして作成>
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#norelated
#contents
----
*ダウンロード [#w200ca87]
-Redmine本体
&br;http://redmine.jp/download/
&br;http://www.redmine.org/projects/redmine/wiki/Download
-Ruby
&br;http://www.ruby-lang.org/ja/downloads/
*インストール [#w85d24b5]
**ampや開発環境等のインストール [#qe43ac66]
# yum -y groupinstall "Development Tools"
#ref(./yum-developmenttools.txt);
# yum -y install openssl-devel readline-devel zlib-devel ...
# yum -y install mariadb-server mariadb-devel
# yum -y install httpd httpd-devel
# yum -y install ImageMagick ImageMagick-devel ipa-pgothi...
#region("まとめてインストール")
# yum -y install openssl-devel readline-devel zlib-devel...
#endregion
#ref(./yum-redmine.txt);
**rubyのインストール [#l468de51]
# curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2...
# tar xvf ruby-2.5.0.tar.gz
#ref(./tar-ruby.txt);
# cd ruby-2.5.0
# ./configure --disable-install-doc
#ref(./ruby-configure.txt);
# make
#ref(./ruby-make.txt);
# make install
#ref(./ruby-makeinstall.txt);
# gem install bundler --no-rdoc --no-ri
**DB設定(([[MariaDB]]参照)) [#sc73e58f]
-設定ファイル(''/etc/my.cnf'')追記
&br;[mysqld]
&br;&color(red){character-set-server=utf8};
~
&br;&color(red){[mysql]};
&br;&color(red){default-character-set=utf8};
**DBサービスの起動/自動起動(([[MariaDB]]参照)) [#m89a368c]
# systemctl start mariadb.service
# systemctl enable mariadb.service
**DB作成 [#j74e8aa1]
-rootパスワード設定
# /usr/bin/mysqladmin -u root password 'zaq1xsw2'
# mysql -uroot -p
&br;> create database redmine default character set utf8;
&br;> grant all on redmine.* to redmine@localhost identif...
**Redmine本体 [#odcea5fe]
# curl -O http://www.redmine.org/releases/redmine-3.4.4.t...
# tar xvf redmine-3.4.4.tar.gz
#ref(./tar-redmine.txt);
# mv ./redmine-3.4.4 /var/www/redmine
-設定ファイル(''/var/www/redmine/config/database.yml'')
&br;production:
&br; adapter: mysql2
&br; database: redmine
&br; host: localhost
&br; username: redmine
&br; password: "zaq1xsw2"
&br; encoding: utf8
-設定ファイル(''/var/www/redmine/config/configuration.yml...
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; address: "localho...
&br; port: 25
&br; domain: "snri.net"
&br;
&br; rmagick_font_path: /usr/share/fonts/ipa-p...
#region("login認証を行なっているSMTPサーバ")
# vi /var/www/redmine/config/configuration.yml
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; address: ''mail.s...
&br; port: 25
&br; authentication: :...
&br; domain: redmine.e...
&br; user_name: ''admi...
&br; password: ''passw...
#endregion
#region("gmailのSMTPサーバ")
# vi /var/www/redmine/config/configuration.yml
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; enable_starttls_a...
&br; address: "smtp.gm...
&br; port: 587
&br; domain: "smtp.gma...
&br; authentication: &...
&br; user_name: "''snr...
&br; password: "''pass...
#endregion
# cd /var/www/redmine
# bundle install --without development test --path vendor...
#ref(./bundleinstall.txt);
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
#ref(./bundleexec.txt);
# RAILS_ENV=production REDMINE_LANG=ja bundle exec rake r...
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module --auto
#ref(./passenger-install.txt);
# passenger-install-apache2-module --snippet >> /etc/http...
-設定ファイル(''/etc/httpd/conf.d/redmine.conf'')に追記
&br;<Directory "/var/www/html/redmine/public">
&br; Require all granted
&br;</Directory>
&br;
&br;Alias /redmine /var/www/redmine/public
&br;<Location /redmine>
&br; PassengerBaseURI /redmine
&br; PassengerAppRoot /var/www/redmine
&br;</Location>
# chown -R apache:apache /var/www/redmine
**firewall設定(([[apache]]参照)) [#oe2a52eb]
# firewall-cmd --zone=public --add-service=http --permanent
# firewall-cmd --reload
**httpdサービスの起動/自動起動(([[apache]]参照)) [#m29be...
# systemctl start httpd.service
# systemctl enable httpd.service
**管理者パスワード設定 [#k18a521d]
ブラウザよりアクセス
#ref(./Redmine-01.png,50%);
→「ログイン」
#ref(./Redmine-02.png,50%);
「ログインID」「パスワード」を入力→「ログイン」
※初期IDは「admin:admin」
#ref(./Redmine-03.png,50%);
パスワードの設定→「適用」
*参考サイト [#i6e873c7]
http://blog.redmine.jp/articles/3_4/install/centos/
http://blog.redmine.jp/articles/3_1/installation_centos/
終了行:
#norelated
#contents
----
*ダウンロード [#w200ca87]
-Redmine本体
&br;http://redmine.jp/download/
&br;http://www.redmine.org/projects/redmine/wiki/Download
-Ruby
&br;http://www.ruby-lang.org/ja/downloads/
*インストール [#w85d24b5]
**ampや開発環境等のインストール [#qe43ac66]
# yum -y groupinstall "Development Tools"
#ref(./yum-developmenttools.txt);
# yum -y install openssl-devel readline-devel zlib-devel ...
# yum -y install mariadb-server mariadb-devel
# yum -y install httpd httpd-devel
# yum -y install ImageMagick ImageMagick-devel ipa-pgothi...
#region("まとめてインストール")
# yum -y install openssl-devel readline-devel zlib-devel...
#endregion
#ref(./yum-redmine.txt);
**rubyのインストール [#l468de51]
# curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2...
# tar xvf ruby-2.5.0.tar.gz
#ref(./tar-ruby.txt);
# cd ruby-2.5.0
# ./configure --disable-install-doc
#ref(./ruby-configure.txt);
# make
#ref(./ruby-make.txt);
# make install
#ref(./ruby-makeinstall.txt);
# gem install bundler --no-rdoc --no-ri
**DB設定(([[MariaDB]]参照)) [#sc73e58f]
-設定ファイル(''/etc/my.cnf'')追記
&br;[mysqld]
&br;&color(red){character-set-server=utf8};
~
&br;&color(red){[mysql]};
&br;&color(red){default-character-set=utf8};
**DBサービスの起動/自動起動(([[MariaDB]]参照)) [#m89a368c]
# systemctl start mariadb.service
# systemctl enable mariadb.service
**DB作成 [#j74e8aa1]
-rootパスワード設定
# /usr/bin/mysqladmin -u root password 'zaq1xsw2'
# mysql -uroot -p
&br;> create database redmine default character set utf8;
&br;> grant all on redmine.* to redmine@localhost identif...
**Redmine本体 [#odcea5fe]
# curl -O http://www.redmine.org/releases/redmine-3.4.4.t...
# tar xvf redmine-3.4.4.tar.gz
#ref(./tar-redmine.txt);
# mv ./redmine-3.4.4 /var/www/redmine
-設定ファイル(''/var/www/redmine/config/database.yml'')
&br;production:
&br; adapter: mysql2
&br; database: redmine
&br; host: localhost
&br; username: redmine
&br; password: "zaq1xsw2"
&br; encoding: utf8
-設定ファイル(''/var/www/redmine/config/configuration.yml...
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; address: "localho...
&br; port: 25
&br; domain: "snri.net"
&br;
&br; rmagick_font_path: /usr/share/fonts/ipa-p...
#region("login認証を行なっているSMTPサーバ")
# vi /var/www/redmine/config/configuration.yml
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; address: ''mail.s...
&br; port: 25
&br; authentication: :...
&br; domain: redmine.e...
&br; user_name: ''admi...
&br; password: ''passw...
#endregion
#region("gmailのSMTPサーバ")
# vi /var/www/redmine/config/configuration.yml
&br;production:
&br; email_delivery:
&br; delivery_method: :smtp
&br; smtp_settings:
&br; enable_starttls_a...
&br; address: "smtp.gm...
&br; port: 587
&br; domain: "smtp.gma...
&br; authentication: &...
&br; user_name: "''snr...
&br; password: "''pass...
#endregion
# cd /var/www/redmine
# bundle install --without development test --path vendor...
#ref(./bundleinstall.txt);
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
#ref(./bundleexec.txt);
# RAILS_ENV=production REDMINE_LANG=ja bundle exec rake r...
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module --auto
#ref(./passenger-install.txt);
# passenger-install-apache2-module --snippet >> /etc/http...
-設定ファイル(''/etc/httpd/conf.d/redmine.conf'')に追記
&br;<Directory "/var/www/html/redmine/public">
&br; Require all granted
&br;</Directory>
&br;
&br;Alias /redmine /var/www/redmine/public
&br;<Location /redmine>
&br; PassengerBaseURI /redmine
&br; PassengerAppRoot /var/www/redmine
&br;</Location>
# chown -R apache:apache /var/www/redmine
**firewall設定(([[apache]]参照)) [#oe2a52eb]
# firewall-cmd --zone=public --add-service=http --permanent
# firewall-cmd --reload
**httpdサービスの起動/自動起動(([[apache]]参照)) [#m29be...
# systemctl start httpd.service
# systemctl enable httpd.service
**管理者パスワード設定 [#k18a521d]
ブラウザよりアクセス
#ref(./Redmine-01.png,50%);
→「ログイン」
#ref(./Redmine-02.png,50%);
「ログインID」「パスワード」を入力→「ログイン」
※初期IDは「admin:admin」
#ref(./Redmine-03.png,50%);
パスワードの設定→「適用」
*参考サイト [#i6e873c7]
http://blog.redmine.jp/articles/3_4/install/centos/
http://blog.redmine.jp/articles/3_1/installation_centos/
ページ名: