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

github watch

https://docs.github.com/ja/github/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions 運用にあたっては、まず、今までのNotificationを全てクリアして、必要なものだけがNot…

bhyve vlan + lagg

vm-bhyve で vlanhttps://github.com/churchers/vm-bhyve/wiki/Virtual-Switches#assigning-a-vlan-number2024.05 原因わかったかもブリッジでvlanタグあり、タグなしを混在できない?https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276936 2024FreeBSD…

Linux 非RAIDシステムのRAID化 mdadm

既インストールのLinuxをRAIDに移行 非RAIDシステムのRAID化 - CentOSで自宅サーバー構築 CentOS 5稼働済みのHDDで後からRAIDを設定する - ログ日記 Debian squeeze (6) ★Yoshiyuki O. Takahashi: debian インストール後に Software RAID を設定 debian 10.0…

FreeBSD zfs mirror swap

https://forums.freebsd.org/threads/should-i-mirror-swap-or-no-swap.73449/Mirror Swapにする。Auto ZFS ZFS Configuration Pool Type/Disks: → raidz2: 8 disks PoolName zroot Force 4K Sectors? YES Encrypt Disks? NO Partition Scheme GPT (BIOS+UEF…

Perc H730 FreeBSD

This is a new system. Integrated raid controller Perc H730P. Fixed it!! At loader prompt set hw.mfi.mrsas_enable=1. Got a clean install and then in loader.conf: hw.mfi.mrsas_enable=1 so properly set each boot. This is where I got info from…

VyOS

VyOS 1.1.8 とそれ以降で開発元の方針が変更され、1.1.8 まではインストール用のシステムイメージが公開されているが、1.2 以降は公開がなされていない。 VyOS 1.2 からは LTS (Long Term Support) Release と Rolling Release の二つに分けて公開されており…

FreeBSD 仮想化 コンソール

存在しないVGAのバーチャルコンソールが開けないエラーが出るので、 気になる場合は /etc/ttys の ttyv0~ttyv7 を off に変えます。Installing FreeBSD 10.x as libvirt qemu-kvm guest via serial console インストールが完了したあとはLiveCDモードに移行…

ubcd

SASParted Magic > console > smartctl -a /dev/sda Erase disk > Write zeros to the entire drive using 'dd'Diagnosis > HDAT2 → 不良セクタ診断 http://pc-sensei.com/ubcd/hddtest/hdat2 https://jisaku-pc.net/free-soft/hdat2.htmlDisk Wiping > Dari…

azure VMでsudoersファイルのsyntaxエラーを起こしちゃったときの対処法 - Qiita cloud shell から削除

munin df_inode

会社マシンに入れた munin の df と df_inode プラグインの調整。 EXCLUDEDFS="-t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs" ↓ EXCLUDEDFS="-t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs,smbfs,cd9660" cd を mount したら 100% …

CloudFront S3 sorryサーバ

CloudFrontを利用してオリジンサーバー障害時にS3上のコンテンツを表示する | DevelopersIO CloudFrontのオリジンドメイン名にリージョン名を追加する CloudFrontディストリビューション作成時、デフォルトの選択肢ではs3.amazonaws.comになるのですが、リー…

脆弱性診断

https://www.immuniweb.com/GVM https://kurita1.hatenadiary.com/entry/2021/02/02/185708

apache security セキュリティ設定

Hide Git Repos on Public Sites – David EganApacheセキュリティ設定 #CentOS - Qiita # # Forbid access to version control directories # # If you use version control systems in your document root, you should # probably deny access to their dir…

東芝 HDD

と書かれているので、おそらくDeskstar, Deskstar NASのことだと思われるが、過去にUltrastarはDeskstarの選別品が使われていることもあるそうなので・・・? なので、 HGST Deskstar≒東芝 MD HGST Deskstar NAS≒東芝 MN/MC HGST Ultrastar≒東芝 MG ・・・か…

RDS mysql upgrade

[新機能] Amazon RDS for MySQLで、簡単に5.6から5.7へアップグレードできるようになりました | DevelopersIO MySQL5.5のRDSをMySQL5.7にアップグレードしてみた - Qiita

pf osx

macOS Catalina システム環境設定 → セキュリティとプライバシー → ファイアウォール → ファイアウォールのオプション → ステルスモードを有効にする (記事最初の画像) を有効にすると、自動的に pf が有効化されました。 macOS Catalina のファイアウォー…

iptables

:INPUT ACCEPT [0:0]の[0:0]は何の事? パケット・バイトカウンタ [パケットカウンタ:バイトカウンタ]を表している。【サーバ】iptablesを使いこなす | 稼働率99.9% ファイアウォールiptablesを簡単解説~初心者でもよくわかる!VPSによるWebサーバー運用講座(4) | さくら…

php Unable to find the wrapper "https"

http://nanoappli.com/blog/archives/8080 pkg install php74-openssl

instagram 画像URL

https://matsuoshi.hatenablog.com/entry/2018/11/02/000000

mysql MyISAM InnoDB ストレージエンジン変更

MySQLの代表的なストレージエンジンはMyISAMとInnoDBですが、利用するエンジンによりメモリ(グローバルバッファ)の使い方は異なります(スレッドバッファは共通)。5.5からは、デフォルトのエンジンがInnoDBになったので、基本、InnoDBのことだけ考えてお…

postgresqlco.nf

https://postgresqlco.nf

cloud-init disable

How to disable cloud-init in Ubuntu · GitHub

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