2021-04-01から1ヶ月間の記事一覧

php7 mysql

https://www.php.net/manual/ja/function.mysql-num-rows.php などPHP 7 以降で MySQL 関数を使用 (代用) する | knootophp7 で非推奨になったmysql_connect関連のmysql関数を対応する(mysqli - それマグで!mysqlからmysqliへの書き換え方法 - Qiitaphp - A…

bhyve p2v VM移行

zfs # -f をつけないで import を実行すると,次のような警告がでます. # 新しいシステムに移行する前に,zpool export を実行しておけばでないようですが, # 私の場合はだいたい実行し忘れているので毎回こうなってます. $ sudo zpool import storage ca…

azure omi

Open Management Infrastructurehttps://en.wikipedia.org/wiki/Open_Management_Infrastructurehttps://github.com/microsoft/omi Testing OMITo test that OMI is functional locally, the omicli command be used:sudo /opt/omi/bin/omicli ei root/omi O…

sendmail

メールヘッダ 送信者アドレスのドメイン部書き換え sendmail.mc 送信者アドレスのドメイン部書き換え(from:ヘッダ) MASQUERADE_AS(`simalab.com')dnl define(`confDOMAIN_NAME', `smtp.simalab.com')dnl送信者アドレスのドメイン部書き換え(エンベロープF…

ssh ポートフォワード

// 対象のサーバへローカルポートフォワードのため接続する。セッションはそのまま。 $ ssh -L5000:grafana.mosuke.local:443 user@ec2-fumidai.example.com https://localhost:5000SSHポートフォワードを通してhttps接続をするときの注意点 sshの踏み台にす…

varnish error page

Varnish4でエラーページをカスタマイズする – Siguniang's Blogsub vcl_synth req.http.Host == sub vcl_backend_error bereq.http.Host ==各アクションでアクセス可能な変数 https://www.slideshare.net/xcir/v4rp-tokyo

munin includedir

includedir (Exactly one) directory to include all files from. Default /etc/munin/plugin-conf.d/ http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html#cmdoption-munin-conf-arg-includedir all filesなのでバックアップファイルを…

tar 除外

tar --exclude *.sock -Pzcvf /foo/data.tar.gz /backup_dir --exclude *.sock でソケットを無視します。suzu6.net

zfs tuning

https://wiki.freebsd.org/ZFSTuningGuideZFSの性能測定とチューニング https://people.allbsd.org/~hrs/FreeBSD/sato-FBSDS20161129-zfs-profiling.pdf 2016 もう一つの地味な落とし穴 空き容量が20%を切ると性能が低下しやすくなるZFSの活用とチューニング…