2008-05-01から1ヶ月間の記事一覧

NTP

ntpでタイムサーバーと同期/etc/ntp.confを修正する。元からあったひな形はいろいろ複雑なことが書いてあったが最低限driftfileとserverを指定すればいいようだ。# cat /etc/ntp.conf driftfile /var/lib/ntp/drift server 130.69.251.23 server 210.173.160.87 serv…

インフラ側で用意すべきこと

・不要なサービスの停止 ・サーバ監視 OpManager(Win), MRTG, cacti ・時刻同期 ntp

サーバ監視

OpManager WindowsWindowsServer2003 http://d.hatena.ne.jp/higurasias/20070807/1186454033 [管理ツール]−[サービス]の中の[SNMP Service] DEVICE TEMPLATEで追加 → 適用の流れ1.3.6.1.2.1.6.9.0 MIB::tcpCurrEstab.0 = Gauge32: 現在 ESTABLISHED …

PHP エラーハンドル

http://ml.php.gr.jp/pipermail/php-users/2006-February/029029.html 「set_error_handler」は、『error_reporting() の設定にかかわらず、 どのような場合でも ユーザが設定したエラーハンドラがコールされます。』 ということなのですね。 http://search.…

Windows Server 2003 リモートデスクトップ

http://technet2.microsoft.com/WindowsServer/ja/library/73de2d7f-3cc3-4afb-88a2-dd0698c5d5091041.mspx?mfr=true 既定の設定では、Remote Desktop Users グループにはデータは設定されていません。リモートでログオンするためのアクセス許可をどのユーザ…

printf の%のエスケープは%%

printfの%のエスケープは%%

exe プロパティ バージョンタブの強制追加

Resource Hackerを使って適当なexeのVersion Infoを選択 [アクション] - [リソースを *.res形式で保存する]追加する exe のファイルで [アクション] - [新しいリソースを追加する] 上記のファイルを読み込む。→ 編集

Windowsファイアーウォール

・インバウンドトラフィック(外から中へ入り込む)"のみ監視 ・全遮断で例外を指定する ・プログラム/ポートで例外を指定 ・ポートの範囲指定はできないhttp://www.microsoft.com/japan/windowsxp/using/security/internet/sp2_wfexceptions.mspx

.htaccess でリダイレクト

http://www.shtml.jp/htaccess/redirect.html

SSI

http://www.wizard-limit.net/mt/pc/archives/000735.html Options +IncludesNoExec AddOutputFilter INCLUDES .html AddOutputFilter INCLUDES .htm

grep 取り除く

grepはcygwinの改行コード依存(LF)パターンを取り除く$ grep -v -f (パターンファイル) (対象ファイル) > (結果ファイル)

wgetでページ有無のチェック

認証ページの場合、url.txtはURLのリスト、result.txtに結果 $ wget --http-user=(ユーザ名) --http-passwd=(パスワード) --spider -nv -i url.txt -o result.txt

リンクチェック

リンクチェッカ・XENU http://home.snafu.de/tilman/xenulink.html http://home.snafu.de/tilman/XENU.ZIP (本体)via http://coliss.com/articles/build-websites/verification/262.html