0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

knowledgeを1.10から1.12にバージョンアップしてみた

Posted at

knowledgeは、1.10までは自動アップデートしていましたが、1.11からメンテナンスモードにしてからDBを更新するようになりました。

1.12の安定版が出たので、1.10からバージョンアップすることにしてみました。
1.10-->1.11-->1.12へと段階を踏んでアップデートしました。
今後のために、備忘録として記録しておきます。

※ 1.11、1.12へのバージョンアップ手順は、下記の繰り返しとなります。

1.ダウンロード
1.11と1.12のknowledge.warファイルをダウンロードする。

2.バックアップ(postgresqlにDB変更した場合)

# pg_dump knowledge -U knowuser > /tmp/knowledge-20180402

※ DBやユーザ名は、任意です。

3.配置
ダウンロードしたknowledge.warを /usr/local/apache-tomcat-8.5.16/webapps/ 下に配置します。

# mv knowledge.war knowledge.war_org
# cd /usr/local/apache-tomcat-8.5.16/webapps/
# ll
合計 121136
drwxr-x---.  3 root root      4096  7月 27  2017 ROOT
drwxr-x---. 14 root root      4096  7月 27  2017 docs
drwxr-x---.  6 root root        83  7月 27  2017 examples
drwxr-x---.  5 root root        87  7月 27  2017 host-manager
drwxr-x---.  9 root root       122  7月 28  2017 knowledge
-rw-r--r--.  1 root root 124031539  7月 22  2017 knowledge.war
drwxr-x---.  5 root root       103  7月 27  2017 manager
# mv /tmp/knowledge.war ./
# ll
合計 369856
drwxr-x---.  3 root root      4096  7月 27  2017 ROOT
drwxr-x---. 14 root root      4096  7月 27  2017 docs
drwxr-x---.  6 root root        83  7月 27  2017 examples
drwxr-x---.  5 root root        87  7月 27  2017 host-manager
-rw-r--r--.  1 root root 130025731  4月  2 16:49 knowledge.war
-rw-r--r--.  1 root root 124031539  7月 22  2017 knowledge.war_org
-rw-r--r--.  1 root root 124660029  4月  2 16:28 knowledge.war_org_11
drwxr-x---.  5 root root       103  7月 27  2017 manager

4.tomcat再起動
反映するため、tomcatを再起動します。

# /usr/local/tomcat/bin/shutdown.sh
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[root@knowledge webapps]#  /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.

5.ちょっとまってから、ブラウザからknowlegeを開く。

6.メンテナンスモード
「メンテナンス管理を実行」のリンクをクリックします。

maintenance.png

7.管理者でログイン
maintenance_login.png

8.DB更新する
「execute」ボタンを押下すると、DB更新がはじまります。
画面の出力は、DB更新完了後の画面です。
DB更新が完了すれば、バージョンアップ完了です。
「Back to knowledge top」のリンクをクリックし、knowledgeの画面に戻ります。

1.11の場合
maintenance_execuse_11.png

1.12の場合
maintenance_execise_12.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?