Growi_info
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
* 事前情報 [#v3206cfb]
** リソース [#q5ec246a]
- [[GROWI 公式ページ(github):https://github.com/weseek/...
- [[ドキュメント:https://docs.growi.org/en/]]
- [[開発者による GROWI 紹介ページ (Qiita):https://qiita.c...
** 概要 [#ca14ae5c]
- GROWI は markup ベースのページ作成ツール(OSS)
- WESEEK, Inc. が社内ツールとして開発メンテしているもの
- [[Crowi:https://site.crowi.wiki/]] のフォーク
- pukiwiki の後継情報アグリゲーションサイトとして検討
- &color(red){2020年時点でもコードメンテ、リリースの実態...
-- &ref(comp_activity.jpg);
- なので、今回お試しで GROWI の方をインストールしてみる事...
* 必要なパッケージ群をインストール [#ec596359]
- docker イメージ、heiroku イメージも用意されているが Ubu...
- 公式ドキュメントでは Ubuntu 16.04 向けのインストール手...
- [[Ubuntu18.04にGrowiをインストール:https://qiita.com/ha...
- 特に nodejs のバージョン(既にメンテが止まっている v8.4...
** 必要パッケージ [#pb5432d7]
- node.js 8.x (DO NOT USE 9.x)
- npm 5.x
- yarn
- MongoDB 3.x
- Redis 3.x (Optional)
- Elasticsearch 5.x (Optional)
- Japanese (kuromoji) Analysis plugin
- ICU Analysis Plugin
** node/npm [#sfdbe1c6]
*** curl で v8.4 の repo を指定(ワーニング表示後にインス...
[KGB] munakata:~$ curl -sL https://deb.nodesource.com/se...
========================================================...
========================================================...
DEPRECATION WARNING ...
Node.js 8.x LTS Carbon is no longer actively supported!
You will not receive security or critical stability up...
You should migrate to a supported version of Node.js a...
Use the installation script that corresponds to the ve...
wish to install. e.g.
* https://deb.nodesource.com/setup_10.x — Node.js 10 ...
* https://deb.nodesource.com/setup_12.x — Node.js 12 ...
* https://deb.nodesource.com/setup_14.x — Node.js 14 ...
Please see https://github.com/nodejs/Release for detai...
version may be appropriate for you.
The NodeSource Node.js distributions repository contains
information both about supported versions of Node.js a...
distributions. To learn more about usage, see the repo...
https://github.com/nodesource/distributions
========================================================...
========================================================...
Continuing in 20 seconds ...
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
## Populating apt-get cache...
+ apt-get update
取得:1 file:/var/opt/amdgpu-pro-local ./ InRelease
無視:1 file:/var/opt/amdgpu-pro-local ./ InRelease
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
取得:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
無視:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
エラー:4 http://archive.ubuntu.com/ubuntu bionic InRelea...
'archive.ubuntu.com' を解決できませんでした
ヒット:5 http://jp.archive.ubuntu.com/ubuntu bionic InRe...
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-update...
ヒット:7 https://dl.yarnpkg.com/debian stable InRelease ...
無視:8 https://repo.mongodb.org/apt/ubuntu bionic/mongod...
取得:9 http://jp.archive.ubuntu.com/ubuntu bionic-backpo...
ヒット:10 https://repo.mongodb.org/apt/ubuntu bionic/mon...
ヒット:11 http://dl.google.com/linux/chrome/deb stable I...
取得:13 http://security.ubuntu.com/ubuntu bionic-securit...
ヒット:14 http://archive.canonical.com/ubuntu xenial InR...
無視:15 https://artifacts.elastic.co/packages/5.x/apt st...
ヒット:16 https://artifacts.elastic.co/packages/5.x/apt ...
252 kB を 1秒 で取得しました (176 kB/s) ...
パッケージリストを読み込んでいます... 完了
W: http://archive.ubuntu.com/ubuntu/dists/bionic/InRelea...
W: いくつかのインデックスファイルのダウンロードに失敗し...
## Confirming "bionic" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/nod...
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.g...
OK
## Creating apt sources list file for the NodeSource Nod...
+ echo 'deb https://deb.nodesource.com/node_8.x bionic m...
+ echo 'deb-src https://deb.nodesource.com/node_8.x bion...
## Running `apt-get update` for you...
+ apt-get update
取得:1 file:/var/opt/amdgpu-pro-local ./ InRelease
無視:1 file:/var/opt/amdgpu-pro-local ./ InRelease
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
エラー:3 http://archive.ubuntu.com/ubuntu bionic InRelease
'archive.ubuntu.com' を解決できませんでした
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]...
取得:4 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
無視:4 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
ヒット:5 http://jp.archive.ubuntu.com/ubuntu bionic InRe...
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-update...
ヒット:7 http://dl.google.com/linux/chrome/deb stable In...
取得:8 http://jp.archive.ubuntu.com/ubuntu bionic-backpo...
ヒット:9 https://dl.yarnpkg.com/debian stable InRelease ...
無視:10 https://repo.mongodb.org/apt/ubuntu bionic/mongo...
ヒット:11 https://repo.mongodb.org/apt/ubuntu bionic/mon...
ヒット:12 http://archive.canonical.com/ubuntu xenial InR...
取得:13 http://security.ubuntu.com/ubuntu bionic-securit...
取得:15 https://deb.nodesource.com/node_8.x bionic InRel...
無視:16 https://artifacts.elastic.co/packages/5.x/apt st...
ヒット:17 https://artifacts.elastic.co/packages/5.x/apt ...
取得:19 https://deb.nodesource.com/node_8.x bionic/main ...
取得:20 https://deb.nodesource.com/node_8.x bionic/main ...
258 kB を 2秒 で取得しました (136 kB/s)
パッケージリストを読み込んでいます... 完了
W: http://archive.ubuntu.com/ubuntu/dists/bionic/InRelea...
W: いくつかのインデックスファイルのダウンロードに失敗し...
## Run `sudo apt-get install -y nodejs` to install Node....
## You may also need development tools to build native a...
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg |...
echo "deb https://dl.yarnpkg.com/debian/ stable mai...
sudo apt-get update && sudo apt-get install yarn
*** nodejs のインストール (同時に npm も入った) [#u7a6cc...
[KGB] munakata:~$ sudo apt install -y nodejs
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必...
libboost-program-options1.65.1 libgoogle-perftools4 li...
linux-headers-4.15.0-118-generic linux-image-4.15.0-11...
これを削除するには 'sudo apt autoremove' を利用してくだ...
以下のパッケージが新たにインストールされます:
nodejs
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個...
14.1 MB のアーカイブを取得する必要があります。
この操作後に追加で 70.5 MB のディスク容量が消費されます。
取得:1 https://deb.nodesource.com/node_8.x bionic/main a...
14.1 MB を 4秒 で取得しました (3,391 kB/s)
以前に未選択のパッケージ nodejs を選択しています。
(データベースを読み込んでいます ... 現在 284730 個のファ...
.../nodejs_8.17.0-1nodesource1_amd64.deb を展開する準備...
nodejs (8.17.0-1nodesource1) を展開しています...
nodejs (8.17.0-1nodesource1) を設定しています ...
man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ...
[KGB] munakata:~$ node -v
v8.17.0
[KGB] munakata:~$ npm -v
6.13.4
** yarn のリポジトリ設定、インストール [#e2d0f545]
[KGB] munakata:~$ curl -sS https://dl.yarnpkg.com/debian...
OK
[KGB] munakata:~$ echo "deb https://dl.yarnpkg.com/debia...
deb https://dl.yarnpkg.com/debian/ stable main
[KGB] munakata:~$ sudo apt-get update && sudo apt-get in...
yarn はすでに最新バージョン (1.22.5-1) です。<--------- ...
[KGB] munakata:~$ yarn -v
1.22.5
** mongodb のインストール [#zb74a88d]
*** インストール [#t55274d1]
[KGB] munakata:~$ sudo apt install -y mongodb mongodb-se...
(問題なく進んだので経過は省略)
*** 起動とステータス確認 [#n17c805c]
[KGB] munakata:~$ sudo systemctl start mongodb
[KGB] munakata:~$ sudo systemctl status mongodb
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; ...
Active: active (running) since Tue 2020-10-20 11:08:5...
Docs: man:mongod(1)
Main PID: 346 (mongod)
Tasks: 23 (limit: 4915)
CGroup: /system.slice/mongodb.service
└─346 /usr/bin/mongod --unixSocketPrefix=/run...
10月 20 11:08:54 mvc systemd[1]: Started An object/docum...
*** 自動起動の有効化 [#me6eb337]
[KGB] munakata:~$ sudo systemctl enable mongodb
Synchronizing state of mongodb.service with SysV service...
Executing: /lib/systemd/systemd-sysv-install enable mong...
*** バージョン確認(exit で抜ける) [#q1695d4c]
[KGB] munakata:~$ mongo
MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.3
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten]
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten] ...
storage engine
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten]
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten]
> exit
bye
** java のインストール [#jef7e7b5]
*** apt で openjdk をインストール [#o26d009a]
[KGB] munakata:~$ sudo apt install -y default-jre openjd...
(問題なく進んだので経過は省略)
[KGB] munakata:~$ java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu...
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0u...
*** インストール先を確認し JAVA_HOMEに java8 を設定 [#dd2...
[KGB] munakata:~$ update-alternatives --list java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
[KGB] munakata:~$ sudo vi /etc/profile.d/java.sh
[KGB] munakata:~$ cat /etc/profile.d/java.sh
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
(一度ログアウト)
[KGB] munakata:~$ echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
*** ヒープメモリーサイズは 4G に設定されている(メモリー...
[KGB (sudo)]:~# java -XX:+PrintFlagsFinal -version | gre...
size_t MaxHeapSize = 394...
uint64_t MaxRAM = 137...
uintx MaxRAMFraction = 4 ...
double MaxRAMPercentage = 25....
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu...
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0u...
** Elasticsearchのリポジトリ設定、インストール [#y2c5f125]
*** elasticsearch を apt でインストール [#s68c32cb]
[KGB] munakata:~$ sudo apt update
[KGB] munakata:~$ sudo apt install -y elasticsearch
*** plug-in インストール [#a7be6538]
[KGB] munakata:~$ sudo /usr/share/elasticsearch/bin/elas...
-> Downloading analysis-kuromoji from elastic
[=================================================] 100%...
-> Installed analysis-kuromoji
[KGB] munakata:~$ sudo /usr/share/elasticsearch/bin/elas...
-> Downloading analysis-icu from elastic
[=================================================] 100%...
-> Installed analysis-icu
*** 起動とステータス確認 [#y505f97c]
[KGB] munakata:~$ sudo systemctl start elasticsearch
[KGB] munakata:~$ sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch...
Active: active (running) since Thu 2020-10-08 19:14:0...
Docs: http://www.elastic.co
Main PID: 8414 (java)
Tasks: 55 (limit: 4915)
CGroup: /system.slice/elasticsearch.service
└─8414 /usr/bin/java -Xms2g -Xmx2g -XX:+UseCo...
10月 08 19:14:01 mvc systemd[1]: Starting Elasticsearch...
10月 08 19:14:01 mvc systemd[1]: Started Elasticsearch.
-- メモリーは 2GB 割り当てられている(十分以上に大きい)
-- elasticsearch[2772]: OpenJDK 64-Bit Server VM &color(r...
## GC configuration
#-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
*** 自動起動の有効化 [#vb1cf22b]
[KGB] munakata:~$ sudo systemctl enable elasticsearch
Synchronizing state of elasticsearch.service with SysV s...
Executing: /lib/systemd/systemd-sysv-install enable elas...
*** 動作確認 [#nbc5a304]
- /etc/elasticsearch/elasticsearch.yml の network.host と...
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: localhost
#
# Set a custom port for HTTP:
#
http.port: 9200
#
- curl でアクセスしてみる
[KGB (sudo)]:~# curl localhost:9200
{
"name" : "qTywGV3",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "QIjtkuqkQTmgaNh0XrRuNQ",
"version" : {
"number" : "5.6.16",
"build_hash" : "3a740d1",
"build_date" : "2019-03-13T15:33:36.565Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}
** Redis [#td7b74ec]
*** リポジトリ追加 [#pe301be2]
[KGB] munakata:~$ sudo add-apt-repository ppa:chris-lea/...
Redis is an open source, advanced key-value store. It i...
詳しい情報: https://launchpad.net/~chris-lea/+archive/u...
[ENTER] を押すと続行します。Ctrl-c で追加をキャンセルで...
(以下省略)
*** バージョン確認 [#q9711657]
[KGB] munakata:~$ sudo apt show redis-server
Package: redis-server
Version: 5:6.0.6-3chl1~bionic1
Priority: optional
Section: database
Source: redis
Maintainer: Chris Lamb <lamby@debian.org>
Installed-Size: 178 kB
Depends: lsb-base (>= 3.2-14), redis-tools (= 5:6.0.6-3c...
Download-Size: 84.6 kB
APT-Sources: http://ppa.launchpad.net/chris-lea/redis-se...
Description: ネットワークインターフェースを備えた永続的...
Redis は memcache のようなキーバリューデータベースです...
は、リストやセットといったデータ構造のアトミックな 操作...
.
データセットはすべてメモリ内に保存され、定期的にディス...
N: 追加レコードが 2 件あります。表示するには '-a' スイッ...
*** インストール [#d2c8110e]
[KGB] munakata:~$ sudo apt install -y redis-server
(以下省略)
[KGB] munakata:~$ redis-cli --version
redis-cli 6.0.6
[KGB] munakata:~$ redis-server --version
Redis server v=6.0.6 sha=00000000:0 malloc=jemalloc-5.1....
*** 起動とステータス確認 [#k3898f47]
[KGB] munakata:~$ sudo systemctl start redis-server
[KGB] munakata:~$ sudo systemctl status redis-server
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.serv...
Active: active (running) since Tue 2020-10-20 12:36:1...
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 10466 (redis-server)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/redis-server.service
└─10466 /usr/bin/redis-server 127.0.0.1:6379
10月 20 12:36:19 mvc systemd[1]: Starting Advanced key-v...
10月 20 12:36:19 mvc systemd[1]: redis-server.service: C...
10月 20 12:36:19 mvc systemd[1]: Started Advanced key-va...
*** 自動起動の有効化 [#k1234abb]
[KGB] munakata:~$ sudo systemctl enable redis-server
Synchronizing state of redis-server.service with SysV se...
Executing: /lib/systemd/systemd-sysv-install enable redi...
Created symlink /etc/systemd/system/redis.service → /lib...
* GROWI 本体のインストール [#p4fc3097]
*** github から最新バージョンをフェッチ [#p614fa91]
[KGB] munakata:~$ cd /opt
[KGB] munakata:/opt$ sudo git clone https://github.com/w...
Cloning into 'growi'...
remote: Enumerating objects: 387, done.
remote: Counting objects: 100% (387/387), done.
remote: Compressing objects: 100% (263/263), done.
remote: Total 156607 (delta 200), reused 225 (delta 119)...
Receiving objects: 100% (156607/156607), 40.27 MiB | 1.6...
Resolving deltas: 100% (116863/116863), done.
[KGB] munakata:/opt$ cd growi/
[KGB] munakata:/opt/growi$ sudo git tag -l
(最新バージョンが v4.1.9 である事を確認)
[KGB] munakata:/opt/growi$ sudo git checkout -b v4.1.9 r...
Switched to a new branch 'v4.1.9'
- &ref(growi_latest.jpg);
*** yarn でインストール [#lc1051a0]
[KGB] munakata:/opt/growi$ sudo yarn
yarn install v1.22.5
[1/5] Validating package.json...
error growi@4.1.9: The engine "node" is incompatible wit...
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for d...
- &color(red){わざわざ古い node v8.x をインストールしたが...
*** インストール済みの npm を使って n コマンドをインスト...
[KGB] munakata:/opt/growi$ sudo npm install -g n
/usr/bin/n -> /usr/lib/node_modules/n/bin/n
+ n@6.7.0
added 1 package from 4 contributors in 1.338s
*** nodejs のアップデート [#w7d4f691]
- [[nodejs リリース一覧:https://nodejs.org/ja/download/re...
- 12.x は GROWI 4.1.9 のサポートバージョン
- n コマンドで最新の Stable 版をインストール
[KGB] munakata:/opt/growi$ sudo n lts
installed : v12.19.0 (with npm 6.14.8)
Note: the node command changed location and the old loca...
old : /usr/bin/node
new : /usr/local/bin/node
To reset the command location hash either start a new sh...
- path の変更を反映
[KGB] munakata:/opt/growi$ which node
/usr/local/bin/node
(shell を再起動)
[KGB] munakata:~$ node -v
v12.19.0
*** yarn 再実行 [#l68a98b0]
[KGB] munakata:/opt$ cd growi
[KGB] munakata:/opt/growi$ sudo yarn
yarn install v1.22.5
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.13: The platform "linux" is incompatib...
info "fsevents@1.2.13" is an optional dependency and fai...
info fsevents@2.1.2: The platform "linux" is incompatibl...
info "fsevents@2.1.2" is an optional dependency and fail...
[4/5] Linking dependencies...
warning " > multer-autoreap@1.0.3" has incorrect peer de...
warning " > react-card-flip@1.0.10" has incorrect peer d...
warning " > react-card-flip@1.0.10" has incorrect peer d...
warning " > @atlaskit/drawer@5.3.7" has incorrect peer d...
warning "@atlaskit/drawer > @atlaskit/avatar@17.1.11" ha...
warning "@atlaskit/drawer > @atlaskit/blanket@10.0.18" h...
warning "@atlaskit/drawer > @atlaskit/icon@20.1.2" has i...
warning "@atlaskit/drawer > @atlaskit/item@11.0.2" has i...
warning "@atlaskit/drawer > @atlaskit/theme@9.5.2" has i...
warning "@atlaskit/navigation-next > @atlaskit/tooltip@1...
warning " > @atlaskit/navigation-next@8.0.5" has incorre...
warning "@atlaskit/navigation-next > @atlaskit/spinner@1...
warning "@atlaskit/navigation-next > react-beautiful-dnd...
warning "@atlaskit/navigation-next > react-beautiful-dnd...
warning "@atlaskit/navigation-next > unstated@1.2.0" has...
warning "unstated > create-react-context@0.1.6" has unme...
warning " > bootstrap@4.5.0" has unmet peer dependency "...
warning " > bootstrap@4.5.0" has unmet peer dependency "...
warning "eslint-config-weseek > eslint-config-airbnb@17....
warning "eslint-config-weseek > eslint-config-airbnb@17....
warning "eslint-config-weseek > eslint-config-airbnb > e...
warning "eslint-plugin-jest > @typescript-eslint/experim...
dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3...
warning " > react-frame-component@4.0.0" has unmet peer ...
warning " > styled-components@5.0.1" has unmet peer depe...
warning " > stylelint-config-recess-order@2.0.1" has inc...
warning "stylelint-config-recess-order > stylelint-order...
warning "swagger2openapi > better-ajv-errors@0.6.6" has ...
[5/5] Building fresh packages...
Done in 25.54s.
*** GROWI の直接起動 [#ib77db63]
- 当初 elasticsearch の引数を 127.0.0.1 にしていて起動で...
- 下記で(ワーニングは大量に出るが)正常起動して、初期設...
[KGB (sudo)]:/opt/growi# sudo NODE_ENV=production MONGO_...
*** systemd への登録と自動起動の設定 [#t9c76f1f]
- systemd 設定ファイル(/etc/systemd/system/growi.service...
[Unit]
Description = growi
After=network-online.target mongod.service
ConditionPathExists=/opt/growi
[Service]
ExecStart=/opt/growi/growi-start.sh
Restart=no
Type=simple
[Install]
WantedBy=multi-user.target
- 起動スクリプト(/opt/growi/growi-start.sh)
#!/bin/sh
cd /opt/growi
NODE_ENV=production \
MONGO_URI=mongodb://localhost:27017/growi \
ELASTICSEARCH_URI=http://localhost:9200/growi \
REDIS_URI=redis://localhost:6379 \
PASSWORD_SEED=7mochahiko \
FILE_UPLOAD=local \
npm start
- GROWI の起動とステータス確認
[KGB (sudo)]:~# systemctl start growi
[KGB (sudo)]:~# systemctl status growi
● growi.service - growi
Loaded: loaded (/etc/systemd/system/growi.service; di...
Active: active (running) since Thu 2020-10-29 10:53:1...
Main PID: 30647 (growi-start.sh)
Tasks: 51 (limit: 4915)
CGroup: /system.slice/growi.service
├─30647 /bin/sh /opt/growi/growi-start.sh
├─30648 npm
├─30659 sh -c npm run build:prod
├─30660 npm
├─30671 sh -c npm run clean && env-cmd -f con...
├─30741 node /opt/growi/node_modules/.bin/env...
├─30748 npm
├─30759 sh -c node bin/generate-plugin-defini...
└─30760 node bin/generate-plugin-definitions-...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > npm run cl...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > npm-run-al...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > rimraf -- ...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > rimraf -- ...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > node bin/g...
- 自動起動の設定
[KGB (sudo)]:~# systemctl is-enabled growi.service
disabled
[KGB (sudo)]:~# systemctl enable growi.service
Created symlink /etc/systemd/system/multi-user.target.wa...
[KGB (sudo)]:~# systemctl is-enabled growi.service
enabled
* GROWI インストール場所の変更 (/opt/growi → /mnt/raid_v...
*** ファイルをまるごと移動 [#p171fd3f]
[KGB] munakata:/mnt/raid_vol/html$ sudo -R /opt/growi /m...
*** スクリプト関係の修正 [#y01e7a7a]
- /etc/systemd/system/growi.service
[Unit]
Description = growi
After=network-online.target mongod.service
ConditionPathExists=/mnt/raid_vol/html/growi
[Service]
ExecStart=/mnt/raid_vol/html/growi/growi-start.sh
Restart=no
Type=simple
[Install]
WantedBy=multi-user.target
- /etc/apache2/sites-available/svr.hmuna.com-le-ssl.conf
*** yarn を念の為実行 → 更新はなかった [#wbba0002]
*** growi を再起動して動作確認(正常に起動) [#oc014874]
[KGB] munakata:/mnt/raid_vol/html/growi$ sudo systemctl ...
● growi.service - growi
Loaded: loaded (/etc/systemd/system/growi.service; en...
Active: active (running) since Thu 2020-11-05 14:15:2...
Main PID: 12688 (growi-start.sh)
Tasks: 43 (limit: 4915)
CGroup: /system.slice/growi.service
├─12688 /bin/sh /mnt/raid_vol/html/growi/grow...
├─12689 npm
├─12908 sh -c npm run server:prod
├─12909 npm
├─12957 sh -c env-cmd -f config/env.prod.js n...
├─12958 node /mnt/raid_vol/html/growi/node_mo...
└─12965 node src/server/app.js
11月 05 14:16:13 mvc growi-start.sh[12688]: (node:12965)...
11月 05 14:16:14 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:14 mvc growi-start.sh[12688]: (node:12965)...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
* Apache サーバー(svr.hmuna.com)設定 [#ab3eee7d]
** virtual domain 設定 [#w15e5c7f]
** dns 設定 [#g98882bc]
** サーバー証明書 [#y9fb5454]
*** Let's encrypt から公式サーバー証明書を取得 [#t3dc9094]
- Your certificate and chain have been saved at &color(re...
- Your key file has been saved at &color(red){/etc/letsen...
[KGB (sudo)]:~# add-apt-repository ppa:certbot/certbot
[KGB (sudo)]:~# apt install python-certbot-apache
[KGB (sudo)]:~# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and securit...
cancel): admin@hmuna.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15...
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(A)gree/(C)ancel: A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Would you be willing to share your email address with th...
Foundation, a founding partner of the Let's Encrypt proj...
organization that develops Certbot? We'd like to send yo...
encrypting the web, EFF news, campaigns, and ways to sup...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
1: kgb.hmuna.com
2: svr.hmuna.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Select the appropriate numbers separated by commas and/o...
blank to select all options shown (Enter 'c' to cancel): 2
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for svr.hmuna.com
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/svr...
Deploying Certificate to VirtualHost /etc/apache2/sites-...
Enabling available site: /etc/apache2/sites-available/sv...
Please choose whether or not to redirect HTTP traffic to...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
1: No redirect - Make no further changes to the webserve...
2: Redirect - Make all requests redirect to secure HTTPS...
new sites, or if you're confident your site works on HTT...
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Select the appropriate number [1-2] then [enter] (press ...
Redirecting vhost in /etc/apache2/sites-enabled/svr.hmun...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Congratulations! You have successfully enabled https://s...
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=svr.hmuna...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/svr.hmuna.com/privkey.pem
Your cert will expire on 2021-01-27. To obtain a new ...
version of this certificate in the future, simply run...
with the "certonly" option. To non-interactively rene...
your certificates, run "certbot renew"
- Your account credentials have been saved in your Cert...
configuration directory at /etc/letsencrypt. You shou...
secure backup of this folder now. This configuration ...
also contain certificates and private keys obtained b...
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our w...
Donating to ISRG / Let's Encrypt: https://letsencry...
Donating to EFF: https://eff.org/d...
*** 証明書の更新 [#l38b68de]
- dry run で更新処理が正常に実施される事を確認
[KGB (sudo)]:~# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Processing /etc/letsencrypt/renewal/svr.hmuna.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Cert not due for renewal, but simulating renewal for dry...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for svr.hmuna.com
Waiting for verification...
Cleaning up challenges
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
new certificate deployed with reload of apache server; f...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
** DRY RUN: simulating 'certbot renew' close to cert exp...
** (The test certificates below have not been s...
Congratulations, all renewals succeeded. The following c...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem (suc...
** DRY RUN: simulating 'certbot renew' close to cert exp...
** (The test certificates above have not been s...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
IMPORTANT NOTES:
- Your account credentials have been saved in your Cert...
configuration directory at /etc/letsencrypt. You shou...
secure backup of this folder now. This configuration ...
also contain certificates and private keys obtained b...
making regular backups of this folder is ideal.
- certbot インストール時に証明書自動更新処理も設定された...
[KGB (sudo)]:~# cat /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot p...
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate ce...
# haven't been revoked, etc. Renewal will only occur if...
# is within 30 days.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin...
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run...
** Apache サーバー設定(動作したもの) [#xc60acb4]
- リバースプロキシー設定で https://svr.hmuna.com/ でアク...
- &ref(svr.hmuna.com-le-ssl.conf);
<IfModule mod_ssl.c>↲
<VirtualHost *:443>↲
#-------------------------------------------------------...
# svr.hmuna.com (SSL)↲
#-------------------------------------------------------...
ServerName svr.hmuna.com↲
ServerAdmin server-admin@hmuna.com↲
DocumentRoot /mnt/raid_vol/html/growi↲
ProxyPass / http://localhost:3000/↲
ProxyPassReverse / http://localhost:3000/↲
# Enable SSL for this virtual host.↲
SSLEngine on↲
# クライアント証明書↲
SSLCACertificateFile /etc/ssl/unofficial_for_CL/pr...
SSLVerifyDepth 1↲
↲
#<Directory /opt/growi>↲
<Directory /mnt/raid_vol/html/growi>↲
# ログイン認証(kgb と合わせる)↲
<RequireAny>↲
# ローカルネットからはパスワードなしアクセス...
Require ip 172.0.0.1↲
Require ip 192.168.1↲
# クライアント証明書が確認できた場合にはアク...
Require ssl-verify-client↲
↲
# それ以外は Google Authentificator を利用↲
<RequireAll>↲
Require not env force_drop↲
AuthType Basic↲
AuthName "Enter OTP password"↲
AuthBasicProvider OTP↲
Require valid-user↲
OTPAuthUsersFile /mnt/raid_vol/html/otp/...
OTPAuthMaxLinger 3600↲
OTPAuthMaxOTPFailure 200↲
OTPAuthLogoutOnIPChange On↲
OTPAuthPINAuthProvider file↲
</RequireAll>↲
</RequireAny>↲
</Directory>↲
↲
# ログ設定↲
# Possible values include: debug, info, notice, warn...
LogLevel error↲
#LogLevel debug↲
#LogLevel alert↲
ErrorLog /var/log/apache2/error_svr.log↲
SetEnvIf Remote_Addr "192.168.1." no_log↲
CustomLog /var/log/apache2/svr.access.log combined e...
↲
<Directory /opt/growi>↲
Options +FollowSymLinks↲
AllowOverride None↲
</Directory>↲
↲
SSLCertificateFile /etc/letsencrypt/live/svr.hmuna.com/f...
SSLCertificateKeyFile /etc/letsencrypt/live/svr.hmuna.co...
Include /etc/letsencrypt/options-ssl-apache.conf↲
</VirtualHost>↲
</IfModule>↲
** Growi アカウント [#pb612f1f]
- ID = Hisao Munakata
-- pass = frex7785GR
-- e-mail = munakata@hmuna.com
** 参考 URL [#o238c0b2]
- [[nginxの導入、リバースプロキシ設定、複数のGrowiを稼動...
- [[CentOS7.6でGROWIを動かしたときの手順メモ:https://qiit...
* pukiwiki コンテンツの移植 [#aab3f33b]
終了行:
#contents
* 事前情報 [#v3206cfb]
** リソース [#q5ec246a]
- [[GROWI 公式ページ(github):https://github.com/weseek/...
- [[ドキュメント:https://docs.growi.org/en/]]
- [[開発者による GROWI 紹介ページ (Qiita):https://qiita.c...
** 概要 [#ca14ae5c]
- GROWI は markup ベースのページ作成ツール(OSS)
- WESEEK, Inc. が社内ツールとして開発メンテしているもの
- [[Crowi:https://site.crowi.wiki/]] のフォーク
- pukiwiki の後継情報アグリゲーションサイトとして検討
- &color(red){2020年時点でもコードメンテ、リリースの実態...
-- &ref(comp_activity.jpg);
- なので、今回お試しで GROWI の方をインストールしてみる事...
* 必要なパッケージ群をインストール [#ec596359]
- docker イメージ、heiroku イメージも用意されているが Ubu...
- 公式ドキュメントでは Ubuntu 16.04 向けのインストール手...
- [[Ubuntu18.04にGrowiをインストール:https://qiita.com/ha...
- 特に nodejs のバージョン(既にメンテが止まっている v8.4...
** 必要パッケージ [#pb5432d7]
- node.js 8.x (DO NOT USE 9.x)
- npm 5.x
- yarn
- MongoDB 3.x
- Redis 3.x (Optional)
- Elasticsearch 5.x (Optional)
- Japanese (kuromoji) Analysis plugin
- ICU Analysis Plugin
** node/npm [#sfdbe1c6]
*** curl で v8.4 の repo を指定(ワーニング表示後にインス...
[KGB] munakata:~$ curl -sL https://deb.nodesource.com/se...
========================================================...
========================================================...
DEPRECATION WARNING ...
Node.js 8.x LTS Carbon is no longer actively supported!
You will not receive security or critical stability up...
You should migrate to a supported version of Node.js a...
Use the installation script that corresponds to the ve...
wish to install. e.g.
* https://deb.nodesource.com/setup_10.x — Node.js 10 ...
* https://deb.nodesource.com/setup_12.x — Node.js 12 ...
* https://deb.nodesource.com/setup_14.x — Node.js 14 ...
Please see https://github.com/nodejs/Release for detai...
version may be appropriate for you.
The NodeSource Node.js distributions repository contains
information both about supported versions of Node.js a...
distributions. To learn more about usage, see the repo...
https://github.com/nodesource/distributions
========================================================...
========================================================...
Continuing in 20 seconds ...
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
## Populating apt-get cache...
+ apt-get update
取得:1 file:/var/opt/amdgpu-pro-local ./ InRelease
無視:1 file:/var/opt/amdgpu-pro-local ./ InRelease
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
取得:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
無視:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
エラー:4 http://archive.ubuntu.com/ubuntu bionic InRelea...
'archive.ubuntu.com' を解決できませんでした
ヒット:5 http://jp.archive.ubuntu.com/ubuntu bionic InRe...
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-update...
ヒット:7 https://dl.yarnpkg.com/debian stable InRelease ...
無視:8 https://repo.mongodb.org/apt/ubuntu bionic/mongod...
取得:9 http://jp.archive.ubuntu.com/ubuntu bionic-backpo...
ヒット:10 https://repo.mongodb.org/apt/ubuntu bionic/mon...
ヒット:11 http://dl.google.com/linux/chrome/deb stable I...
取得:13 http://security.ubuntu.com/ubuntu bionic-securit...
ヒット:14 http://archive.canonical.com/ubuntu xenial InR...
無視:15 https://artifacts.elastic.co/packages/5.x/apt st...
ヒット:16 https://artifacts.elastic.co/packages/5.x/apt ...
252 kB を 1秒 で取得しました (176 kB/s) ...
パッケージリストを読み込んでいます... 完了
W: http://archive.ubuntu.com/ubuntu/dists/bionic/InRelea...
W: いくつかのインデックスファイルのダウンロードに失敗し...
## Confirming "bionic" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/nod...
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.g...
OK
## Creating apt sources list file for the NodeSource Nod...
+ echo 'deb https://deb.nodesource.com/node_8.x bionic m...
+ echo 'deb-src https://deb.nodesource.com/node_8.x bion...
## Running `apt-get update` for you...
+ apt-get update
取得:1 file:/var/opt/amdgpu-pro-local ./ InRelease
無視:1 file:/var/opt/amdgpu-pro-local ./ InRelease
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
エラー:3 http://archive.ubuntu.com/ubuntu bionic InRelease
'archive.ubuntu.com' を解決できませんでした
取得:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]...
取得:4 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
無視:4 file:/var/opt/amdgpu-pro-local ./ Release.gpg ...
ヒット:5 http://jp.archive.ubuntu.com/ubuntu bionic InRe...
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-update...
ヒット:7 http://dl.google.com/linux/chrome/deb stable In...
取得:8 http://jp.archive.ubuntu.com/ubuntu bionic-backpo...
ヒット:9 https://dl.yarnpkg.com/debian stable InRelease ...
無視:10 https://repo.mongodb.org/apt/ubuntu bionic/mongo...
ヒット:11 https://repo.mongodb.org/apt/ubuntu bionic/mon...
ヒット:12 http://archive.canonical.com/ubuntu xenial InR...
取得:13 http://security.ubuntu.com/ubuntu bionic-securit...
取得:15 https://deb.nodesource.com/node_8.x bionic InRel...
無視:16 https://artifacts.elastic.co/packages/5.x/apt st...
ヒット:17 https://artifacts.elastic.co/packages/5.x/apt ...
取得:19 https://deb.nodesource.com/node_8.x bionic/main ...
取得:20 https://deb.nodesource.com/node_8.x bionic/main ...
258 kB を 2秒 で取得しました (136 kB/s)
パッケージリストを読み込んでいます... 完了
W: http://archive.ubuntu.com/ubuntu/dists/bionic/InRelea...
W: いくつかのインデックスファイルのダウンロードに失敗し...
## Run `sudo apt-get install -y nodejs` to install Node....
## You may also need development tools to build native a...
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg |...
echo "deb https://dl.yarnpkg.com/debian/ stable mai...
sudo apt-get update && sudo apt-get install yarn
*** nodejs のインストール (同時に npm も入った) [#u7a6cc...
[KGB] munakata:~$ sudo apt install -y nodejs
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必...
libboost-program-options1.65.1 libgoogle-perftools4 li...
linux-headers-4.15.0-118-generic linux-image-4.15.0-11...
これを削除するには 'sudo apt autoremove' を利用してくだ...
以下のパッケージが新たにインストールされます:
nodejs
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個...
14.1 MB のアーカイブを取得する必要があります。
この操作後に追加で 70.5 MB のディスク容量が消費されます。
取得:1 https://deb.nodesource.com/node_8.x bionic/main a...
14.1 MB を 4秒 で取得しました (3,391 kB/s)
以前に未選択のパッケージ nodejs を選択しています。
(データベースを読み込んでいます ... 現在 284730 個のファ...
.../nodejs_8.17.0-1nodesource1_amd64.deb を展開する準備...
nodejs (8.17.0-1nodesource1) を展開しています...
nodejs (8.17.0-1nodesource1) を設定しています ...
man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ...
[KGB] munakata:~$ node -v
v8.17.0
[KGB] munakata:~$ npm -v
6.13.4
** yarn のリポジトリ設定、インストール [#e2d0f545]
[KGB] munakata:~$ curl -sS https://dl.yarnpkg.com/debian...
OK
[KGB] munakata:~$ echo "deb https://dl.yarnpkg.com/debia...
deb https://dl.yarnpkg.com/debian/ stable main
[KGB] munakata:~$ sudo apt-get update && sudo apt-get in...
yarn はすでに最新バージョン (1.22.5-1) です。<--------- ...
[KGB] munakata:~$ yarn -v
1.22.5
** mongodb のインストール [#zb74a88d]
*** インストール [#t55274d1]
[KGB] munakata:~$ sudo apt install -y mongodb mongodb-se...
(問題なく進んだので経過は省略)
*** 起動とステータス確認 [#n17c805c]
[KGB] munakata:~$ sudo systemctl start mongodb
[KGB] munakata:~$ sudo systemctl status mongodb
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; ...
Active: active (running) since Tue 2020-10-20 11:08:5...
Docs: man:mongod(1)
Main PID: 346 (mongod)
Tasks: 23 (limit: 4915)
CGroup: /system.slice/mongodb.service
└─346 /usr/bin/mongod --unixSocketPrefix=/run...
10月 20 11:08:54 mvc systemd[1]: Started An object/docum...
*** 自動起動の有効化 [#me6eb337]
[KGB] munakata:~$ sudo systemctl enable mongodb
Synchronizing state of mongodb.service with SysV service...
Executing: /lib/systemd/systemd-sysv-install enable mong...
*** バージョン確認(exit で抜ける) [#q1695d4c]
[KGB] munakata:~$ mongo
MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.3
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten]
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten] ...
storage engine
2020-10-20T11:08:54.284+0900 I STORAGE [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten]
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten] ...
2020-10-20T11:08:55.309+0900 I CONTROL [initandlisten]
> exit
bye
** java のインストール [#jef7e7b5]
*** apt で openjdk をインストール [#o26d009a]
[KGB] munakata:~$ sudo apt install -y default-jre openjd...
(問題なく進んだので経過は省略)
[KGB] munakata:~$ java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu...
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0u...
*** インストール先を確認し JAVA_HOMEに java8 を設定 [#dd2...
[KGB] munakata:~$ update-alternatives --list java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
[KGB] munakata:~$ sudo vi /etc/profile.d/java.sh
[KGB] munakata:~$ cat /etc/profile.d/java.sh
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
(一度ログアウト)
[KGB] munakata:~$ echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
*** ヒープメモリーサイズは 4G に設定されている(メモリー...
[KGB (sudo)]:~# java -XX:+PrintFlagsFinal -version | gre...
size_t MaxHeapSize = 394...
uint64_t MaxRAM = 137...
uintx MaxRAMFraction = 4 ...
double MaxRAMPercentage = 25....
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu...
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0u...
** Elasticsearchのリポジトリ設定、インストール [#y2c5f125]
*** elasticsearch を apt でインストール [#s68c32cb]
[KGB] munakata:~$ sudo apt update
[KGB] munakata:~$ sudo apt install -y elasticsearch
*** plug-in インストール [#a7be6538]
[KGB] munakata:~$ sudo /usr/share/elasticsearch/bin/elas...
-> Downloading analysis-kuromoji from elastic
[=================================================] 100%...
-> Installed analysis-kuromoji
[KGB] munakata:~$ sudo /usr/share/elasticsearch/bin/elas...
-> Downloading analysis-icu from elastic
[=================================================] 100%...
-> Installed analysis-icu
*** 起動とステータス確認 [#y505f97c]
[KGB] munakata:~$ sudo systemctl start elasticsearch
[KGB] munakata:~$ sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch...
Active: active (running) since Thu 2020-10-08 19:14:0...
Docs: http://www.elastic.co
Main PID: 8414 (java)
Tasks: 55 (limit: 4915)
CGroup: /system.slice/elasticsearch.service
└─8414 /usr/bin/java -Xms2g -Xmx2g -XX:+UseCo...
10月 08 19:14:01 mvc systemd[1]: Starting Elasticsearch...
10月 08 19:14:01 mvc systemd[1]: Started Elasticsearch.
-- メモリーは 2GB 割り当てられている(十分以上に大きい)
-- elasticsearch[2772]: OpenJDK 64-Bit Server VM &color(r...
## GC configuration
#-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
*** 自動起動の有効化 [#vb1cf22b]
[KGB] munakata:~$ sudo systemctl enable elasticsearch
Synchronizing state of elasticsearch.service with SysV s...
Executing: /lib/systemd/systemd-sysv-install enable elas...
*** 動作確認 [#nbc5a304]
- /etc/elasticsearch/elasticsearch.yml の network.host と...
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: localhost
#
# Set a custom port for HTTP:
#
http.port: 9200
#
- curl でアクセスしてみる
[KGB (sudo)]:~# curl localhost:9200
{
"name" : "qTywGV3",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "QIjtkuqkQTmgaNh0XrRuNQ",
"version" : {
"number" : "5.6.16",
"build_hash" : "3a740d1",
"build_date" : "2019-03-13T15:33:36.565Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}
** Redis [#td7b74ec]
*** リポジトリ追加 [#pe301be2]
[KGB] munakata:~$ sudo add-apt-repository ppa:chris-lea/...
Redis is an open source, advanced key-value store. It i...
詳しい情報: https://launchpad.net/~chris-lea/+archive/u...
[ENTER] を押すと続行します。Ctrl-c で追加をキャンセルで...
(以下省略)
*** バージョン確認 [#q9711657]
[KGB] munakata:~$ sudo apt show redis-server
Package: redis-server
Version: 5:6.0.6-3chl1~bionic1
Priority: optional
Section: database
Source: redis
Maintainer: Chris Lamb <lamby@debian.org>
Installed-Size: 178 kB
Depends: lsb-base (>= 3.2-14), redis-tools (= 5:6.0.6-3c...
Download-Size: 84.6 kB
APT-Sources: http://ppa.launchpad.net/chris-lea/redis-se...
Description: ネットワークインターフェースを備えた永続的...
Redis は memcache のようなキーバリューデータベースです...
は、リストやセットといったデータ構造のアトミックな 操作...
.
データセットはすべてメモリ内に保存され、定期的にディス...
N: 追加レコードが 2 件あります。表示するには '-a' スイッ...
*** インストール [#d2c8110e]
[KGB] munakata:~$ sudo apt install -y redis-server
(以下省略)
[KGB] munakata:~$ redis-cli --version
redis-cli 6.0.6
[KGB] munakata:~$ redis-server --version
Redis server v=6.0.6 sha=00000000:0 malloc=jemalloc-5.1....
*** 起動とステータス確認 [#k3898f47]
[KGB] munakata:~$ sudo systemctl start redis-server
[KGB] munakata:~$ sudo systemctl status redis-server
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.serv...
Active: active (running) since Tue 2020-10-20 12:36:1...
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 10466 (redis-server)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/redis-server.service
└─10466 /usr/bin/redis-server 127.0.0.1:6379
10月 20 12:36:19 mvc systemd[1]: Starting Advanced key-v...
10月 20 12:36:19 mvc systemd[1]: redis-server.service: C...
10月 20 12:36:19 mvc systemd[1]: Started Advanced key-va...
*** 自動起動の有効化 [#k1234abb]
[KGB] munakata:~$ sudo systemctl enable redis-server
Synchronizing state of redis-server.service with SysV se...
Executing: /lib/systemd/systemd-sysv-install enable redi...
Created symlink /etc/systemd/system/redis.service → /lib...
* GROWI 本体のインストール [#p4fc3097]
*** github から最新バージョンをフェッチ [#p614fa91]
[KGB] munakata:~$ cd /opt
[KGB] munakata:/opt$ sudo git clone https://github.com/w...
Cloning into 'growi'...
remote: Enumerating objects: 387, done.
remote: Counting objects: 100% (387/387), done.
remote: Compressing objects: 100% (263/263), done.
remote: Total 156607 (delta 200), reused 225 (delta 119)...
Receiving objects: 100% (156607/156607), 40.27 MiB | 1.6...
Resolving deltas: 100% (116863/116863), done.
[KGB] munakata:/opt$ cd growi/
[KGB] munakata:/opt/growi$ sudo git tag -l
(最新バージョンが v4.1.9 である事を確認)
[KGB] munakata:/opt/growi$ sudo git checkout -b v4.1.9 r...
Switched to a new branch 'v4.1.9'
- &ref(growi_latest.jpg);
*** yarn でインストール [#lc1051a0]
[KGB] munakata:/opt/growi$ sudo yarn
yarn install v1.22.5
[1/5] Validating package.json...
error growi@4.1.9: The engine "node" is incompatible wit...
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for d...
- &color(red){わざわざ古い node v8.x をインストールしたが...
*** インストール済みの npm を使って n コマンドをインスト...
[KGB] munakata:/opt/growi$ sudo npm install -g n
/usr/bin/n -> /usr/lib/node_modules/n/bin/n
+ n@6.7.0
added 1 package from 4 contributors in 1.338s
*** nodejs のアップデート [#w7d4f691]
- [[nodejs リリース一覧:https://nodejs.org/ja/download/re...
- 12.x は GROWI 4.1.9 のサポートバージョン
- n コマンドで最新の Stable 版をインストール
[KGB] munakata:/opt/growi$ sudo n lts
installed : v12.19.0 (with npm 6.14.8)
Note: the node command changed location and the old loca...
old : /usr/bin/node
new : /usr/local/bin/node
To reset the command location hash either start a new sh...
- path の変更を反映
[KGB] munakata:/opt/growi$ which node
/usr/local/bin/node
(shell を再起動)
[KGB] munakata:~$ node -v
v12.19.0
*** yarn 再実行 [#l68a98b0]
[KGB] munakata:/opt$ cd growi
[KGB] munakata:/opt/growi$ sudo yarn
yarn install v1.22.5
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.13: The platform "linux" is incompatib...
info "fsevents@1.2.13" is an optional dependency and fai...
info fsevents@2.1.2: The platform "linux" is incompatibl...
info "fsevents@2.1.2" is an optional dependency and fail...
[4/5] Linking dependencies...
warning " > multer-autoreap@1.0.3" has incorrect peer de...
warning " > react-card-flip@1.0.10" has incorrect peer d...
warning " > react-card-flip@1.0.10" has incorrect peer d...
warning " > @atlaskit/drawer@5.3.7" has incorrect peer d...
warning "@atlaskit/drawer > @atlaskit/avatar@17.1.11" ha...
warning "@atlaskit/drawer > @atlaskit/blanket@10.0.18" h...
warning "@atlaskit/drawer > @atlaskit/icon@20.1.2" has i...
warning "@atlaskit/drawer > @atlaskit/item@11.0.2" has i...
warning "@atlaskit/drawer > @atlaskit/theme@9.5.2" has i...
warning "@atlaskit/navigation-next > @atlaskit/tooltip@1...
warning " > @atlaskit/navigation-next@8.0.5" has incorre...
warning "@atlaskit/navigation-next > @atlaskit/spinner@1...
warning "@atlaskit/navigation-next > react-beautiful-dnd...
warning "@atlaskit/navigation-next > react-beautiful-dnd...
warning "@atlaskit/navigation-next > unstated@1.2.0" has...
warning "unstated > create-react-context@0.1.6" has unme...
warning " > bootstrap@4.5.0" has unmet peer dependency "...
warning " > bootstrap@4.5.0" has unmet peer dependency "...
warning "eslint-config-weseek > eslint-config-airbnb@17....
warning "eslint-config-weseek > eslint-config-airbnb@17....
warning "eslint-config-weseek > eslint-config-airbnb > e...
warning "eslint-plugin-jest > @typescript-eslint/experim...
dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3...
warning " > react-frame-component@4.0.0" has unmet peer ...
warning " > styled-components@5.0.1" has unmet peer depe...
warning " > stylelint-config-recess-order@2.0.1" has inc...
warning "stylelint-config-recess-order > stylelint-order...
warning "swagger2openapi > better-ajv-errors@0.6.6" has ...
[5/5] Building fresh packages...
Done in 25.54s.
*** GROWI の直接起動 [#ib77db63]
- 当初 elasticsearch の引数を 127.0.0.1 にしていて起動で...
- 下記で(ワーニングは大量に出るが)正常起動して、初期設...
[KGB (sudo)]:/opt/growi# sudo NODE_ENV=production MONGO_...
*** systemd への登録と自動起動の設定 [#t9c76f1f]
- systemd 設定ファイル(/etc/systemd/system/growi.service...
[Unit]
Description = growi
After=network-online.target mongod.service
ConditionPathExists=/opt/growi
[Service]
ExecStart=/opt/growi/growi-start.sh
Restart=no
Type=simple
[Install]
WantedBy=multi-user.target
- 起動スクリプト(/opt/growi/growi-start.sh)
#!/bin/sh
cd /opt/growi
NODE_ENV=production \
MONGO_URI=mongodb://localhost:27017/growi \
ELASTICSEARCH_URI=http://localhost:9200/growi \
REDIS_URI=redis://localhost:6379 \
PASSWORD_SEED=7mochahiko \
FILE_UPLOAD=local \
npm start
- GROWI の起動とステータス確認
[KGB (sudo)]:~# systemctl start growi
[KGB (sudo)]:~# systemctl status growi
● growi.service - growi
Loaded: loaded (/etc/systemd/system/growi.service; di...
Active: active (running) since Thu 2020-10-29 10:53:1...
Main PID: 30647 (growi-start.sh)
Tasks: 51 (limit: 4915)
CGroup: /system.slice/growi.service
├─30647 /bin/sh /opt/growi/growi-start.sh
├─30648 npm
├─30659 sh -c npm run build:prod
├─30660 npm
├─30671 sh -c npm run clean && env-cmd -f con...
├─30741 node /opt/growi/node_modules/.bin/env...
├─30748 npm
├─30759 sh -c node bin/generate-plugin-defini...
└─30760 node bin/generate-plugin-definitions-...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > npm run cl...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > npm-run-al...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > rimraf -- ...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > rimraf -- ...
10月 29 10:53:21 mvc growi-start.sh[30647]: > growi@4.1....
10月 29 10:53:21 mvc growi-start.sh[30647]: > node bin/g...
- 自動起動の設定
[KGB (sudo)]:~# systemctl is-enabled growi.service
disabled
[KGB (sudo)]:~# systemctl enable growi.service
Created symlink /etc/systemd/system/multi-user.target.wa...
[KGB (sudo)]:~# systemctl is-enabled growi.service
enabled
* GROWI インストール場所の変更 (/opt/growi → /mnt/raid_v...
*** ファイルをまるごと移動 [#p171fd3f]
[KGB] munakata:/mnt/raid_vol/html$ sudo -R /opt/growi /m...
*** スクリプト関係の修正 [#y01e7a7a]
- /etc/systemd/system/growi.service
[Unit]
Description = growi
After=network-online.target mongod.service
ConditionPathExists=/mnt/raid_vol/html/growi
[Service]
ExecStart=/mnt/raid_vol/html/growi/growi-start.sh
Restart=no
Type=simple
[Install]
WantedBy=multi-user.target
- /etc/apache2/sites-available/svr.hmuna.com-le-ssl.conf
*** yarn を念の為実行 → 更新はなかった [#wbba0002]
*** growi を再起動して動作確認(正常に起動) [#oc014874]
[KGB] munakata:/mnt/raid_vol/html/growi$ sudo systemctl ...
● growi.service - growi
Loaded: loaded (/etc/systemd/system/growi.service; en...
Active: active (running) since Thu 2020-11-05 14:15:2...
Main PID: 12688 (growi-start.sh)
Tasks: 43 (limit: 4915)
CGroup: /system.slice/growi.service
├─12688 /bin/sh /mnt/raid_vol/html/growi/grow...
├─12689 npm
├─12908 sh -c npm run server:prod
├─12909 npm
├─12957 sh -c env-cmd -f config/env.prod.js n...
├─12958 node /mnt/raid_vol/html/growi/node_mo...
└─12965 node src/server/app.js
11月 05 14:16:13 mvc growi-start.sh[12688]: (node:12965)...
11月 05 14:16:14 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:14 mvc growi-start.sh[12688]: (node:12965)...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
11月 05 14:16:15 mvc growi-start.sh[12688]: [2020-11-05T...
* Apache サーバー(svr.hmuna.com)設定 [#ab3eee7d]
** virtual domain 設定 [#w15e5c7f]
** dns 設定 [#g98882bc]
** サーバー証明書 [#y9fb5454]
*** Let's encrypt から公式サーバー証明書を取得 [#t3dc9094]
- Your certificate and chain have been saved at &color(re...
- Your key file has been saved at &color(red){/etc/letsen...
[KGB (sudo)]:~# add-apt-repository ppa:certbot/certbot
[KGB (sudo)]:~# apt install python-certbot-apache
[KGB (sudo)]:~# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and securit...
cancel): admin@hmuna.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15...
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(A)gree/(C)ancel: A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Would you be willing to share your email address with th...
Foundation, a founding partner of the Let's Encrypt proj...
organization that develops Certbot? We'd like to send yo...
encrypting the web, EFF news, campaigns, and ways to sup...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
1: kgb.hmuna.com
2: svr.hmuna.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Select the appropriate numbers separated by commas and/o...
blank to select all options shown (Enter 'c' to cancel): 2
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for svr.hmuna.com
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/svr...
Deploying Certificate to VirtualHost /etc/apache2/sites-...
Enabling available site: /etc/apache2/sites-available/sv...
Please choose whether or not to redirect HTTP traffic to...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
1: No redirect - Make no further changes to the webserve...
2: Redirect - Make all requests redirect to secure HTTPS...
new sites, or if you're confident your site works on HTT...
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Select the appropriate number [1-2] then [enter] (press ...
Redirecting vhost in /etc/apache2/sites-enabled/svr.hmun...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Congratulations! You have successfully enabled https://s...
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=svr.hmuna...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/svr.hmuna.com/privkey.pem
Your cert will expire on 2021-01-27. To obtain a new ...
version of this certificate in the future, simply run...
with the "certonly" option. To non-interactively rene...
your certificates, run "certbot renew"
- Your account credentials have been saved in your Cert...
configuration directory at /etc/letsencrypt. You shou...
secure backup of this folder now. This configuration ...
also contain certificates and private keys obtained b...
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our w...
Donating to ISRG / Let's Encrypt: https://letsencry...
Donating to EFF: https://eff.org/d...
*** 証明書の更新 [#l38b68de]
- dry run で更新処理が正常に実施される事を確認
[KGB (sudo)]:~# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Processing /etc/letsencrypt/renewal/svr.hmuna.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Cert not due for renewal, but simulating renewal for dry...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for svr.hmuna.com
Waiting for verification...
Cleaning up challenges
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
new certificate deployed with reload of apache server; f...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
** DRY RUN: simulating 'certbot renew' close to cert exp...
** (The test certificates below have not been s...
Congratulations, all renewals succeeded. The following c...
/etc/letsencrypt/live/svr.hmuna.com/fullchain.pem (suc...
** DRY RUN: simulating 'certbot renew' close to cert exp...
** (The test certificates above have not been s...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
IMPORTANT NOTES:
- Your account credentials have been saved in your Cert...
configuration directory at /etc/letsencrypt. You shou...
secure backup of this folder now. This configuration ...
also contain certificates and private keys obtained b...
making regular backups of this folder is ideal.
- certbot インストール時に証明書自動更新処理も設定された...
[KGB (sudo)]:~# cat /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot p...
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate ce...
# haven't been revoked, etc. Renewal will only occur if...
# is within 30 days.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin...
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run...
** Apache サーバー設定(動作したもの) [#xc60acb4]
- リバースプロキシー設定で https://svr.hmuna.com/ でアク...
- &ref(svr.hmuna.com-le-ssl.conf);
<IfModule mod_ssl.c>↲
<VirtualHost *:443>↲
#-------------------------------------------------------...
# svr.hmuna.com (SSL)↲
#-------------------------------------------------------...
ServerName svr.hmuna.com↲
ServerAdmin server-admin@hmuna.com↲
DocumentRoot /mnt/raid_vol/html/growi↲
ProxyPass / http://localhost:3000/↲
ProxyPassReverse / http://localhost:3000/↲
# Enable SSL for this virtual host.↲
SSLEngine on↲
# クライアント証明書↲
SSLCACertificateFile /etc/ssl/unofficial_for_CL/pr...
SSLVerifyDepth 1↲
↲
#<Directory /opt/growi>↲
<Directory /mnt/raid_vol/html/growi>↲
# ログイン認証(kgb と合わせる)↲
<RequireAny>↲
# ローカルネットからはパスワードなしアクセス...
Require ip 172.0.0.1↲
Require ip 192.168.1↲
# クライアント証明書が確認できた場合にはアク...
Require ssl-verify-client↲
↲
# それ以外は Google Authentificator を利用↲
<RequireAll>↲
Require not env force_drop↲
AuthType Basic↲
AuthName "Enter OTP password"↲
AuthBasicProvider OTP↲
Require valid-user↲
OTPAuthUsersFile /mnt/raid_vol/html/otp/...
OTPAuthMaxLinger 3600↲
OTPAuthMaxOTPFailure 200↲
OTPAuthLogoutOnIPChange On↲
OTPAuthPINAuthProvider file↲
</RequireAll>↲
</RequireAny>↲
</Directory>↲
↲
# ログ設定↲
# Possible values include: debug, info, notice, warn...
LogLevel error↲
#LogLevel debug↲
#LogLevel alert↲
ErrorLog /var/log/apache2/error_svr.log↲
SetEnvIf Remote_Addr "192.168.1." no_log↲
CustomLog /var/log/apache2/svr.access.log combined e...
↲
<Directory /opt/growi>↲
Options +FollowSymLinks↲
AllowOverride None↲
</Directory>↲
↲
SSLCertificateFile /etc/letsencrypt/live/svr.hmuna.com/f...
SSLCertificateKeyFile /etc/letsencrypt/live/svr.hmuna.co...
Include /etc/letsencrypt/options-ssl-apache.conf↲
</VirtualHost>↲
</IfModule>↲
** Growi アカウント [#pb612f1f]
- ID = Hisao Munakata
-- pass = frex7785GR
-- e-mail = munakata@hmuna.com
** 参考 URL [#o238c0b2]
- [[nginxの導入、リバースプロキシ設定、複数のGrowiを稼動...
- [[CentOS7.6でGROWIを動かしたときの手順メモ:https://qiit...
* pukiwiki コンテンツの移植 [#aab3f33b]
ページ名: