2006-02-01から1ヶ月間の記事一覧

ポートを使用しているプロセスを調べる

lsof -i:25 25番ポートを使っているプロセスを調べる

tcpdump 覚え書き

n アドレス変換しない i インタフェース名 X ascii表示 s 1500 パケットサイズ指定 vvv 詳細表示 w 生データのままファイルに出力(- で標準出力) host linux11 Linux11号機との通信 port 25 ポート25番の通信 and で条件をつなぐ。例: tcpdump -n -i eth0…

でCのプログラム

Managed Make C Project 勝手にmakefileを作ってくれるが、ちと難しかった。 Standard Make C Project 自分でmakefileを作る。こっちの方が簡単かも。

ユーザ追加方法

grant all privileges on *.* to monty@localhost identified by 'password' with grant option; grant all privileges on *.* to monty@'%' identified by 'password' with grant option; パスワード変更 # mysqladmin -u root -p12345 -hlocalhost passwor…

アクセスログのフィルタ方法

/etc/httpd/conf/httpd.conf の中を以下のように修正。例:CSSファイル、画像ファイル、JavaScriptなどをフィルタする場合。 SetEnvIf Request_URI "^/wm/css/" dontlog SetEnvIf Request_URI "^/wm/img/" dontlog SetEnvIf Request_URI "^/wm/js/" dontlog …