ソースからのコンパイルを行う場合、単に./configureと実行するとOS環境を調査して自動的にコンパイル環境が整えられる。しかし、この時点で意識的にバイナリのインストール先ディレクトリを変更したり、あらかじめ設定をしておくことが可能だ。 オプションにはさまざまなものがあるが、ここではApacheを例に挙げてみた。ソフトによって異なるため、他のものの場合にはまずヘルプメッセージを眺めてみるのもよいだろう。
sort コマンド 2016/10/11 行を並び替えができるコマンド。 foo.txt が以下の内容の場合、 $ cat foo.txt 3 44 111 11 333 33 4 4a abc ab ac sortコマンドを使うと以下のように辞書順にソートしてくれる。 $ sort foo.txt 11 111 3 33 333 4 44 4a ab abc ac -n オプションを付けると数字は数値としてソートしてくれる。数字でないものは辞書順になるみたい。 $ sort -n foo.txt ab abc ac 3 4 4a 11 33 44 111 333 1つ以上のスペースで区切られた複数列のデータの場合にソートキーとなる列を指定してのソートもできる。 以下のような2列のデータがあるとして、 $ cat foo.txt 1 3 2 44 3 111 4 11 5 333 6 33
ディスクが壊れた場合の状態確認やらに使う。 Eはエンクロージャ番号 Sはスロット番号 aはアダプタ番号 上記は物理ディスクの状態確認結果で表示される。 ■物理ディスクの状態 どのディスクが壊れているか確認。 Firmware Stateあたりを見る。 /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL ■仮想ディスクの状態 RAIDディスクの状態を確認 /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL ■LED点灯 ぶっ壊れているディスクのスロットのLEDを点灯させる /opt/MegaRAID/MegaCli/MegaCli64 -Pdlocate start physdrv[E:S] -a0 ■ディスクのオフライン 交換対象のディスクにアクセスできる状態であれば、オフラインにする /opt/M
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く