全文検索:
- 23 Apache vhost一覧 @01_linux:02_www
- oxy: using_defaults PidFile: "/opt/bitnami/apache/var/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_R
- 18 Let's Encrypt Certbot @01_linux:02_www
- = systemctl enable --now snapd.socket ln -s /var/lib/snapd/snap /snap ===== 3.snapdアップデート ===== ... = 5.証明書作成 ===== certbot certonly --webroot -w /var/www/html -d hogehoge.com ===== 6.証明書更新 ===== ... new --renew-hook "systemctl restart httpd" -q >> /var/log/certbot-renew.log {{tag>SSL Let's Encrypt}}
- 08 qcow2 バックアップ 外部へ取得する場合(online external) @01_linux:08_仮想化:kvm
- -------------------------------------- vda /var/lib/libvirt/images/testvm.qcow2 sda - </cod... -------------------------------------- vda /var/lib/libvirt/images/testvm.testsnap sda - </... r name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.testsnap' index='3'/> ... <format type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.qcow2'/> <backi
- 17 Nginx FastCGI Cache @01_linux:02_www
- out 300; fastcgi_pass unix:/opt/bitnami/php/var/run/www.sock; fastcgi_index index.php; f
- 02 MySQL max_connections @01_linux:11_データベース:01_mysql
- ーログ ===== Apache側でエラーが出る。 <code console> # more /var/log/httpd/error_log [Fri Feb 22 05:00:49 2013] [e
- 01 PostgreSQL streaming replica @01_linux:11_データベース:02_postgresql
- /system/postgresql-13.service Environment=PGDATA=/var/lib/pgsql/13/data/ ↓ Environment=PGDATA=/data/ </... ===== PATH追加 ===== <code> cat << __EOM__ | tee /var/lib/pgsql/.pgsql_profile PATH=/usr/pgsql-13/bin:$PATH export PATH __EOM__ source /var/lib/pgsql/.pgsql_profile </code> ===== PGDATA変更 ===== <code> # vi /var/lib/pgsql/.bash_profile #PGDATA=/var/lib/pgsql/12
- 16 unboundでキャッシュサーバ @01_linux:01_net
- e: "unbound" directory: "/etc/unbound" logfile: "/var/log/unbound.log" use-syslog: no log-queries: no log-time-ascii: yes pidfile: "/var/run/unbound/unbound.pid" root-hints: "/etc/unboun... ache </code> ==== ログファイル作成 ==== <code> # touch /var/log/unbound.log # chown unbound:unbound /var/log/unbound.log # chmod 644 /var/log/unbound.log </code>
- 13 Ubuntu 古いzabbix @01_linux:30_ubuntu
- ir -m u=rwx,g=rwx,o= -p /usr/lib/zabbix mkdir -p /var/log/zabbix /etc/zabbix/zabbix_agentd.d chown zabbix:zabbix /usr/lib/zabbix /var/log/zabbix </code> ===== ソースからインストール ===== <code
- 03 Strongswan IKEv2 with PSK @01_linux:10_network
- test ~]# strongswan status connecting to 'unix:///var/run/charon.ctl' failed: Connection refused failed to connect to stroke socket 'unix:///var/run/charon.ctl' </code> === 対応 === # systemctl stop strongswan # rm -rf /var/run/charon.ctl # systemctl start strongswan {{
- 20 Ceph PG数 @01_linux:13_storage
- RAW USE DATA OMAP META AVAIL %USE VAR PGS STATUS 3 hdd 0.81870 1.00000 838 G
- 19 Ceph OMAP META @01_linux:13_storage
- W USE DATA OMAP META AVAIL %USE VAR PGS STATUS TYPE NAME 2 hdd ... W USE DATA OMAP META AVAIL %USE VAR PGS STATUS TYPE NAME 2 hdd
- 04 sar(sysstat) steal @01_linux:12_ツール
- sar -s time|指定時間以降のデータ| |sar -e time|指定時間までのデータ| |sar -f /var/log/sa/sa01|日付別の過去データ| {{tag>steal sar}}
- 34 疑似NVMe Drive @01_linux:08_仮想化:kvm
- u:arg value='-drive'/> <qemu:arg value='file=/var/lib/libvirt/images/test.qcow2,format=qcow2,if=non... # cat /etc/apparmor.d/abstractions/libvirt-qemu /var/lib/libvirt/images/test.qcow2 rwk, </code> ==== ... apparmor.service ==== パーミッションエラーの場合 ==== chmod 777 /var/lib/libvirt/images/test.qcow2 {{tag>KVM}}
- 02 OpenStack base Console @01_linux:08_仮想化:juju
- ehoge.com; listen 6080 ssl http2 ; # access_log /var/log/nginx/access.log vhost; ssl_session_timeout
- 17 mon HEALTH_WARN mon xxx is using a lot of disk space @01_linux:13_storage
- 。 ===== エラー ===== このsstファイルが大量にできてしまってディスクを圧迫 /var/lib/ceph/mon/ceph-mon01/store.db/*.sst <code> # ... 15 GiB >= mon_data_size_warn (15 GiB) # du -sh /var/lib/ceph/mon/ceph-mon01/ 16G /var/lib/ceph/mon/ceph-mon01/ </code> ===== compact ===== compactか... 動しないOSDを削除し、同期完了するとちゃんと小さくなります。 <code> # du -hs /var/lib/ceph/mon/ceph-mon01/store.db/ 2.1G /var/lib/c