2019-01-01から1年間の記事一覧

postgres index インデックス メンテナンス

PostgreSQL12ではreindexコマンドをオンラインで実行することができるconcurrentlyオプションに対応しました。 以下のように実行します。 reindex index concurrently idx_testa01;PostgreSQLのインデックス再編成 #PostgreSQL - Qiita 12以下はpg_repackを…

postgresqltuner

https://github.com/jfcoz/postgresqltuner

https://squoosh.appグーグル、画像圧縮ウェブツール「Squoosh」公開 - ZDNet Japan

# emacs /usr/share/munin/plugins/mysql_ 修正前。 my %section_map = ( ~~~~ 'BACKGROUND THREAD' => \&skip, ); 修正後。 my %section_map = ( ~~~~ 'BACKGROUND THREAD' => \&skip, 'INDIVIDUAL BUFFER POOL INFO' => \&skip, ); MuninのMySQLプラグイン…

freebsd nrpe check_mpt

pkg install nrpe3 pkg install p5-Nagios-Plugin https://raw.githubusercontent.com/trombik/reallyenglish-nagios-plugins/master/src/check_mpt/check_mpt wget --no-check-certificate https://raw.githubusercontent.com/trombik/reallyenglish-nagios…

php preg_replace

【PHP】preg_match関数がうまく動かない – ysklogPHPを7.2にバージョンアップしたら正規表現でマッチしない現象に出くわした - Qiita

cd ドキュメントルートとなるフォルダ python -m SimpleHTTPServer 8080 cd ドキュメントルートとなるフォルダ php -S localhost:8080 お手軽なWebサーバーの立て方 - Qiita

FreeBSD 11.2 php7.1.27 ソースコンパイル ./configure --enable-intl で以下エラー /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information. ext/intl/msgformat/.libs/msgformat_helpers.o: In function `st…

linxu mdadm raid

mdadm のハードディスク交換 RAID構成ハードディスク交換 - CentOSで自宅サーバー構築 交換したハードディスクにgrubをインストールするgrub-install grub-installを実行したらGRUBメニューが表示されなくなった - ITmedia エンタープライズ/ と/bootディレ…

linux swap

http://www.turbolinux.co.jp/products/server/10s/manual/command_guide/command_guide/swap.html CentOS/パーティションの UUID を確認・変更する方法 - maruko2 Note. UUIDはblkidで確認するblkid /dev/md2 http://takuya-1st.hatenablog.jp/entry/2016/1…

同時実行禁止 #!/bin/sh PIDFILE=/tmp/test.pid if [ -f $PIDFILE ]; then PID=`cat $PIDFILE` echo "$0 is running $PID" exit 1 fi echo $$ > $PIDFILE sleep 60 rm $PIDFILE

MacBook Pro 15-inch 2016 / macOS SierraでBluetoothマウスが自動で繋がらないので改善するために試してみた内容。結果、治った。 | Amiten.inc – web企画・制作の株式会社アミテン

Centos6 certbot

Let's Encryptで証明書を発行する - よくわからないエンジニア CentOS6でLet’s Encryptを使おうとするとpython2.7が入らずに詰まる | PCがあれば何でもできる! CentOS 6.7 + Python 2.7 errors on letsencrypt-auto run · Issue #1106 · certbot/certbot · …

Xperia XZ1 Compact + Android 9 Pie

iijmio(ドコモ回線)+Xperia XZ1 compact(海外版)Android 9 PieへのOSアップデートでテザリングできなくなった。以下で解決 https://twitter.com/TominagaAkira/status/1079005549579034624 https://king.mineo.jp/my/3489b0aea3ffa56c/reports/9054 設定>モ…

apache coredump

# mkdir /tmp/coredump # chown www /tmp/coredump # vi httpd.conf

タグ調査

https://www.ghostery.com/

SMR(瓦書き方式) HDD

なお、ストレージ製品の製造、販売を行うiXsystemsのフォーラムには、現在判明しているSMRを採用したHDDのリストが公開されています。 NAS向けHDD「WD Red」の記録方式をこっそり変更した件についてWDが釈明 - GIGAZINE List of known SMR drives | iXsystem…

postgres エスケープ

https://qiita.com/namutaka/items/684d1f1950db4dc24d62 PostgreSQL9.1の仕様変更にて、デフォルト時の設定として、standard_conforming_stringsがonとみなされるようになりました。この仕様変更により、デフォルト設定でのPostgreSQLは、バックスラッシュ…