全文検索:
- 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
- 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
- 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> ==== プールの設定
- 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
- 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> # rm /var/www/html/postfixad
- 63 Adaptech set priority 優先度変更 @01_linux:99_その他
- ====== 63 Adaptech set priority 優先度変更 ====== ===== arcconfig ===== タスクやリビリルドのプライオリティ変更 ARCCONF SETPRIORITY 1 <task_id> HIGH ARCCONF SETPRIORITY 1 LOW CURRENT ===== タスクの優先度下げる ===== ==== タスクの確認 ===... Percentage complete : 2 </code> ==== setpriority ==== <code> # /usr/StorMan/arcconf setpri
- 01 Galera構築 @01_linux:11_データベース:01_mysql
- un/mysqld/mysqld.pid # # * IMPORTANT: Additional settings that can override those from this file! # ... 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 level logging, set this to 1 wsrep_debug=0 # convert locking sessio
- 15 InnoDB テーブルロック @01_linux:11_データベース:01_mysql
- | sato | 40 | +----+--------+-----+ 3 rows in set (0.02 sec) </code> <code> create table lock_test... 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... | +--------------------------+-------+ 1 row in set (0.02 sec) </code> ===== インデックス張っている方は行ロックとなる ==
- 34 s3cmd @01_linux:01_net
- トール ==== <code console> $ cd s3cmd $ sudo python setup.py install </code> ==== 3. configファイル作成 ==== ... internet access must go through a HTTP proxy. Try setting it here if you can't conect to S3 directly HTTP Proxy server name: New settings: Access Key: XXXXXXXXXXXXXXXXXXX Secret ... t access with supplied credentials? [Y/n] n Save settings? [y/N] y </code> これでホームディレクトリに「**.s3cfg**」
- 51 Heartbeat + Pacemaker + galera(3 server) @01_linux:01_net
- (ocf::heartbeat:IPaddr2): Started galera-1 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-2 galera-3 ] ... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer
- mod_geoip 接続元国でWebアクセスを制限 @01_linux:02_www
- che側の設定 ===== <Location /> Order allow,deny SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry SetEnvIf GEOIP_COUNTRY_CODE KR BlockCountry SetEnvIf GEOIP_COUNTRY_CODE US BlockCountry Deny from env=... </Location> ===== 特定の国からのWebアクセスを拒否する ===== SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry # もし国コー