tweet:2020:1215_01
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
tweet:2020:1215_01 [2022/06/08 01:51] – seirios | tweet:2020:1215_01 [2023/07/28 19:48] (現在) – [PostgreSQLに関する設定] seirios | ||
---|---|---|---|
行 31: | 行 31: | ||
</ | </ | ||
* NextCloud用の追加Packageを投入 | * NextCloud用の追加Packageを投入 | ||
- | * < | + | * OLD: <del>< |
# pkg install php74-extensions php74-zip php74-mbstring php74-gd php74-curl php74-openssl php74-fileinfo php74-bz2 php74-intl php74-bcmath php74-ftp php74-gmp php74-exif php74-pecl-memcache php74-pecl-memcached php74-pecl-imagick-im7 php74-pecl-APCu | # pkg install php74-extensions php74-zip php74-mbstring php74-gd php74-curl php74-openssl php74-fileinfo php74-bz2 php74-intl php74-bcmath php74-ftp php74-gmp php74-exif php74-pecl-memcache php74-pecl-memcached php74-pecl-imagick-im7 php74-pecl-APCu | ||
+ | </ | ||
+ | * < | ||
+ | # pkg install php80-extensions php80-zip php80-mbstring php80-gd php80-curl php80-fileinfo php80-bz2 php80-intl php80-bcmath php80-ftp php80-gmp php80-exif php80-pecl-memcache php80-pecl-memcached php80-pecl-imagick-im7 php80-pecl-APCu | ||
</ | </ | ||
* 次に、PGSQLおよび格納ファイル用のzpoolを作成する | * 次に、PGSQLおよび格納ファイル用のzpoolを作成する | ||
行 63: | 行 66: | ||
postgresql_enable=YES | postgresql_enable=YES | ||
postgresql_class=postgres | postgresql_class=postgres | ||
- | postgresql_data=/ | + | postgresql_data=/ |
</ | </ | ||
* PostgreSQLの初期化を行う | * PostgreSQLの初期化を行う | ||
行 87: | 行 90: | ||
postgres=# \q | postgres=# \q | ||
</ | </ | ||
- | * PostgreSQLのCleanup(Vacuum)とIndex作成を自動で行うようにする | + | * <del>PostgreSQLのCleanup(Vacuum)とIndex作成を自動で行うようにする</ |
+ | * Vacuumは自動で実施される。Vacuumのタイミングを制御したい場合以外は入れる必要はない | ||
+ | * reindexは壊れた時にのみ行えば良いものなので、cronで定期実行するのは害が大きい模様(壊れるわけではないが、無駄に負荷をかける) | ||
+ | * reindexによってメモリキャッシュが消えてしまい、indexを再度読み込む負荷がかかる可能性が高い | ||
* < | * < | ||
# mkdir -p / | # mkdir -p / |
tweet/2020/1215_01.1654620673.txt.gz · 最終更新: 2022/06/08 01:51 by seirios