2013-01-01から1年間の記事一覧

nslookup

yum install bind-utils でいれる

deflate

少しばかりdeflate 昔からどこかのサイトマネしといて設定を変えてない#DEFLATE SetOutputFilter DEFLATEDeflateCompressionLevel 3BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !…

X-Powered-Byヘッダ

X-Powered-Byヘッダ 消すときは、;;;;;;;;;;;;;;;;; ; Miscellaneous ; ;;;;;;;;;;;;;;;;;; Decides whether PHP may expose the fact that it is installed on the server ; (e.g. by adding its signature to the Web server header). It is no security ;…

googleのDNS

nameserver 8.8.8.8 nameserver 8.8.8.4

シェルでrsyncのパスワード入れる

expect -c 'spawn rsync -avz --delete xxx@yyy:/zzz/ /zzz/backxxx/; expect "*?assword:*" {send "password\r"; interact};' expectで行ってくれた。expectは対話的にコマンド実行してくれる。。。。。 クライアントのIPが動的だったからこれは助かったか…

phpをworker仕様に、、、

workerにしたかったので仕方なくコンパイルwget http://jp2.php.net/get/php-5.5.2.tar.bz2/from/jp1.php.net/mirror tar -xvjf php-5.5.2.tar.bz2 cd php-5.5.2 ./configure --with-apxs2=/usr/sbin/apxs \ --with-config-file-path=/etc/httpd/conf/php \ …

rsync

・sshクライアント側 su - cd ~ ssh-keygen -t rsa/root/.ssh/に id_rsa(秘密鍵)と、id_rsa.pub(公開鍵)の二つのファイルが作成されるので、 公開鍵をバックアップPCにコピーします rsync -e ssh /root/.ssh/id_rsa.pub サーバIP:/root/・sshサーバ側 su…

2005年に買ったノートPCにCentOS入れるんだけど

昔から使っているFedoraが1台死んだので、rsyncでバックアップ取るため、2005年に買ったノートPCにCentOS入れたんだけど、最新の6.4をDVDRWに焼いたけれど駄目だったそのころのBIOSとかCPUとかでは、もしかしたらマザーボードかもしれんけれど、しょうもない…

wani14.lzh oscil005.lzh 音