全文検索:
- 02 pipのインストール @01_linux:12_ツール
- sy_installの準備 ===== easy_installが入ってない場合は、python-setuptoolsを入れてあげる [[https://pypi.python.org/pypi/setuptools#downloads|Python setuptools 3.3]] <code console> # wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python </
- 01 vim @01_linux:20_エディタ
- rcを置けばOK <code> $ cat ~/.vimrc ""#####表示設定##### ""set number "行番号を表示する set title "編集中のファイル名を表示 set showmatch "括弧入力時の対応する括弧を表示 syntax on "コードの色分け set tabstop=4 "インデントをスペース4つ分に設定 set nosmartindent "
- 55 corosync pacemaker @01_linux:01_net
- rce </code> === クラスタ作成 === <code> # pcs cluster setup --name pcs_cluster node01 node02 node03 </code>... 設定 ===== ==== フィルタの停止と、初期設定 ==== pcs property set stonith-enabled=false pcs property set no-quorum-policy=ignore pcs resource defaults resource-s... ocf:pacemaker:ping \ name=ping_set \ dampen=5s \ multi
- 16 unboundでキャッシュサーバ @01_linux:01_net
- g-cache-slabs: 16 num-queries-per-thread: 16384 rrset-cache-size: 1500m rrset-cache-slabs: 16 infra-cache-slabs: 16 do-ip6: no access-control: 127.0.0.0/8 a... shold: 10000000 prefetch: yes prefetch-key: yes rrset-roundrobin: yes minimal-responses: yes dlv-anchor... め スラブ数とワーカスレッド数を一致させるとロック回数が減る。 msg-cache-slabs rrset-cache-slabs: infra-cache-slabs key-cache-slabs
- 19 Let's Encrypt ワイルドカード証明書 @01_linux:02_www
- "/domains/$argv[2]/dns"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url . $path); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); if ($method!=='GET') { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query); curl_setopt($ch, C
- 01 NagiosQL @01_linux:04_監視
- る。 <code> # vi admin/hosts.php 487 $conttp->setVariable("DAT_".strtoupper($key),htmlentities($value)); ↓ 487 $conttp->setVariable("DAT_".strtoupper($key),htmlentities($val... SQL側のエンコード変更 ===== 普通にインストールするとテーブルのDEFAULT CHARSETが「latin1」になっているので変更 === 1.一度dump === <code> # my... iosql_v3 > db_nagiosql_v3.dump </code> === 2.CHARSET=latin1 を CHARSET=utf8 に変更 === <code> # vi db_nag
- 64 Adaptech WriteBack設定 @01_linux:99_その他
- ===== arcconfig ===== # /usr/StorMan/arcconf SETCACHE Usage: SETCACHE <Controller#> LOGICALDRIVE <LogicalDrive#> <logical mode> [noprompt] [nologs] Usage: SETCACHE <Controller#> DEVICE <Channel# ID#> <physica... : Enabled MaxCache preferred read cache setting : Enabled MaxCache read cache setting
- 36 LINSTOR Bcache @01_linux:13_storage
- ORでzfsthinを設定してもシンプロにならないので注意</color> <code> zfs set compress=lz4 DataPool ##zfs set compress=off DataPool zfs set sync=disabled DataPool zfs set atime=off DataPool zpool set autotrim=off DataPool </code> ==== プールの設定
- 76 dmraid リビルド @01_linux:99_その他
- id -s ERROR: isw: wrong number of devices in RAID set "isw_jcjeadfeb_raid01" [1/2] on /dev/sdb *** Group superset isw_jcjeadfeb --> *Inconsistent* Active Subset name : isw_jcjeadfeb_raid01 size : 927985664 stride : 128 type : mirror status : inconsistent subsets: 0 devs : 1 spares : 0 </code> === Raidの構成を確認
- 01 Galera構築 @01_linux:11_データベース:01_mysql
- un/mysqld/mysqld.pid # # * IMPORTANT: Additional settings that can override those from this file! # ... ng_address= # How many threads will process writesets from other nodes wsrep_slave_threads=1 # DBUG o... ertify_nonPK=1 # Maximum number of rows in write set wsrep_max_ws_rows=131072 # Maximum size of write set wsrep_max_ws_size=1073741824 # to enable debug l
- 14 MariaDB @01_linux:11_データベース:01_mysql
- DB | +------------------------+--------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... N | +-----------------------+-------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... ---------------------------+----------+ 2 rows in set (0.00 sec) MariaDB [(none)]> show global variabl... +-------------------------+-----------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl
- 03 iperf3 @01_linux:09_ベンチマーク
- cv the specified file -A, --affinity n/n,m set CPU affinity -V, --verbose more det... ulticast address -C, --linux-congestion <algo> set TCP congestion control algorithm (Linux only) -M, --set-mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP no d
- 15 InnoDB テーブルロック @01_linux:11_データベース:01_mysql
- | sato | 40 | +----+--------+-----+ 3 rows in set (0.02 sec) </code> <code> create table lock_test... , age int not null ) engine=innoDB default charset=utf8; insert into lock_test (name, age) values ... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 21 WHERE name = 'tanaka'; Query OK, 1 row a... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 31 WHERE name = 'suzuki'; ERROR 1205 (HY000
- 13 CentOS6メール設定 @01_linux:03_mail
- lateight.com'; # a convenient default for other settings 通知が来るよう修正 119 $virus_admin ... === URLからアクセス === http://[アドレス]/postfixadmin/setup.php 全部OKになっていればOKです。 setupパスワードを入力し、表示されたsetup_passwordを config.inc.phpに入力する。 ↓ 管理者IDを作成する。 === setup.phpを削除 === <code> #
- 20 Ceph PG数 @01_linux:13_storage
- == 1.変更前の準備 ===== ==== scrub止める ==== ceph osd set noscrub ceph osd set nodeep-scrub ==== back_fillの値を下げておく ==== ceph tell 'osd.*' injectargs --osd-... ctive=3 ===== 2.PG_num変更 ===== ceph osd pool set TEST-pool pg_num 128 ceph osd pool set TEST-pool pgp_num 128 ===== 3.変更の確認 ===== <code> # ceph osd