2020-10-01から1ヶ月間の記事一覧

bhyve FreeBSD 8.4

> The bhyve virtio-block backend doesn't report c/h/s geometry, which is > required by the 8.4 installer. You can work around this by using the 'G' > command to enter a fake geometry that will give the size of the device.https://www.mail-a…

SSL証明書 連結

cat ではなく awk 1 で連結すれば OK です。 awk 1 server.pem chain.pem複数のファイルを終端に改行がなければ改行を追加して結合する - Qiita

FreeBSD 11 php 5.2

https://shami.blog/2018/02/running-older-php-versions-on-freebsd-11/so freebsd1*の問題 https://bugs.php.net/bug.php?id=66007https://blog.skylarking.me/2016/11/05/php_5_2/https://blog.youyo.info/post/2016/02/10/php52-centos7/

FreeBSD 11 apache 2.0.65

https://kb.vmware.com/s/article/2015546 openssl-unsafeを使うのではなくSSLv2をコメントアウトする。以下は書き直す予定 pkg install expat pkg install openssl-unsafe /usr/local/openssl-unsafe/bin/openssl version OpenSSL 1.0.2-chacha (1.0.2k-dev…

macportsユーザ削除

https://apple.stackexchange.com/questions/317576/how-to-delete-macports-user-after-using-the-migration-assistant

varnish 6

Unix Domain Socket(UDS) Unix Domain Socket(UDS)対応LISTEN側でUDSを使う場合 起動パラメータの-aで以下のような指定をします -a /var/run/varnish-uds.sock,user=vcache,group=varnish,mode=666今回はproxyプロトコルを指定していませんが指定できます。(…

nginx リクエスト数制限 limit_req

http://nginx.org/en/docs/http/ngx_http_limit_req_module.html http://nginx.org/en/docs/http/ngx_http_limit_req_module.html#limit_req_zone Requests with an empty key value are not accounted. マニュアルに上記のような記述があり、 の値が空の場…

bash tips

bash デフォルト値 #!/bin/bash foo=${1:-hoge} echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する https://gist.github.com/doi-t/7853853 bash ループ items[0]="altair" items[1]="betelgeuse" items[2]="canopus" for item in "${items[@…

bash デフォルト値

#!/bin/bash foo=${1:-hoge} echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する https://gist.github.com/doi-t/7853853

nrpe と check_by_ssh

http://www.aspect-sys.co.jp/index.php?option=com_content&view=article&id=66:checkbyssh-ssh-&catid=59:2009-11-27-23-07-15&Itemid=89