makeコマンドのコンパイルを高速にする

makeコマンドで「-j」のオプションを使用すると、同時に実行できるジョブ(コマンド)の数を指定できるようになります。このオプションを使用するとmakeコマンドを並列で複数、 ...
MySQLのレプリケーション設定

MHAを構築してみようと思い、その為にはMySQLのレプリケーション環境が必要なのでMaster、SlaveでのMySQLレプリケーション環境を構築しました。その際の作業メモです
CentOS manコマンドを日本語表示にする

Manコマンドの出力が英語表記の場合だと、わかりにくいので日本語表記の方法を紹介します
日本語のmanページをyumでインストール日本語で作成されているManページをyumでインストールしま ...
pacthコマンドの当て方・適用方法(Linux)

Apacehの脆弱性の関係でPatchを当てたのですが、久しぶりにPatchコマンドを使うと「–p」のオプションの使い方が忘れていたので備忘録としてメモしておきます
Patchの「-p」 ...ユーザーをグループに追加する方法(usermod -aG )

Linuxでユーザーを特定のグループに追加する場合は、「usermod」を使いますが、このコマンドでオプションを間違うと思っていたようにグループ追加ができない場合があります。
シェルスクリプトでシンボリックリンクか確認する方法

以前に「シャルスクリプトでファイル・ディレクトリ有無の確認方法「if文」 」と記事を書きましたが、確認する先がシンボリックリンクだとちゃんと動かなかったのでif文でシンボリックリンクの場合の扱いをまとめました
シンボリックリンク ...MySQLでCSV出力をするとエラーになる場合

PHPで動いているWEBシステムがありそのシステムの移行作業を実施する案件がありました。
移行先のサーバで動作確認をおこなっていると、 ...
grep でAND検索とOR検索をする方法

grepで複数の文字列を検索する場合ですが、「-e 検索する文字列」とすればOR検索ができます
書式:grep -e 【検索文字列】 -e 【検索文字列】 【ファイル名】
wgetでBasic認証があるページにアクセスする方法

前回に続いて「wget」のTIPSです。Basic認証等のにユーザー認証があるページにwgetでアクセスする場合は下記のオプションが必要となります
書式:wget –http-user=【ユーザー名】 R ...
wgetでファイル名を指定してダウンロード

wgetでファイルやHTMLファイルを取得する場合ファイル名を指定したり保存先を指定してダウンロードしたい場合があると思います。
その場合はオプションで「-O」を使用すれば ...
digコマンドでMXレコードを確認

digコマンドMXレコードを確認する方法を紹介します。digコマンドではドメイン情報をDNSサーバーから取得する時に使用します。
Windowsの場合は、nslookupコマンドを利用します。nslookupを利用する ...
at コマンドを利用して指定した時刻でコマンド実行する

Linuxにおいてのatコマンドは、指定した時刻で指定したコマンド(ジョブ)を実行するコマンドです。同じように指定した時刻にコマンド(ジョブ)を実行できるcronもありますが、cronは繰り返し実行されますが、atコ ...
Apacheの「.htaccess」を有効にする方法

Apacheで「.htaccess」を有効にする方法を紹介します。「.htaccess」を有効するとディレクトリ毎にIP制限をおこなったりユーザー認証をおこなったりと色々と設定を行うことが出来ます。
「.htacces ...
ファイルシステム(fstab)をLABELで管理する

ext2/ext3/ext4のファイルシステムで、fstab を「/dev/sda1」等で管理するのではなく「LABEL=home /home〜〜」と記述する方法 ...
DISKのマウント状態確認 | Cent 0S

マウントしているDISKの状態やどのようなオプションでマウントしているか確認する方法を紹介します
DISKマウント状態を確認するどのようなマウントポジションで確認したり、 ...