2011-10-01から1ヶ月間の記事一覧

mailコマンド

mailコマンドをmanでひいてみたら、 mailxコマンドの説明がでてきた。もしかしてと思ってlsしてみた。 # ls -l /bin/mail lrwxrwxrwx. 1 root root 5 Oct 2 00:50 /bin/mail -> mailxmailコマンドは、mailxコマンドのシムリンクだった。 mailx(1): send/rece…

CentOS サーバ構築メモ

◯IPv6の無効化 # echo "install ipv6 /bin/true" > /etc/modprobe.d/disable-ipv6.conf # shutdown -r now # ifconfig # /etc/init.d/ip6tables stop # chkconfig --list # chkconfig ip6tables off

さくらのVPSのsshログインが遅い

さくらのVPSサーバにsshログインするときに パスワード入力してから入るまでが長いので、 その解消方法を探しました。ネットで見つけたその方法は、すごく簡単。 resolv.confの設定を書き換えるだけ。 # vi /etc/resolv.conf search sakura.ne.jp nameserver…

apacheをインストールしたときのメモ。

passengerはprefork推奨。 htpasswdコマンドは、apacheをインストールしないと入らない。 apacheたててテストページが表示されない場合は、selinuxとiptablesに注意。 lokkitコマンドっていう、FW周りを設定できるコマンドがある。 iptablesの設定ファイルは…