ServersMan@VPSを使う - 0日目
webサイト作りたいのと、root権限でサーバいじりたいので
ServersMan@VPSに申し込んだ。決め手は安さ。
Entryセット 月額467円
メモリ1GB、HDD50GB
シンプルセット CentOS 6.3(64bit)
Apache(Web) 2.2.3
Perl 5.8.8
AirDisplayっていうWeb上からログインできるSSHコンソールがある。
とりあえずSSHでログインして色々状態を確認。
起動してるプロセス一覧
# ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 init 2 ? S 0:00 [kthreadd/66216] 3 ? S 0:00 [khelper/66216] 341 ? Sl 0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5 371 ? Ss 0:00 /usr/sbin/sshd 378 ? Ss 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid 385 ? Ss 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 387 ? S 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 393 ? Ss 0:01 /usr/sbin/httpd 400 ? Ss 0:00 crond 408 ? Sl 0:12 python /usr/local/share/ajaxterm/ajaxterm.py --daemon 474 ? S 0:00 /usr/sbin/httpd 18396 ? S 0:00 /usr/sbin/httpd 18436 ? Ss 0:00 sshd: root@pts/0 18439 pts/0 Ss 0:00 -bash 18454 pts/0 R+ 0:00 ps ax
開いているポート
# netstat -nl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:3843 0.0.0.0:* LISTEN tcp 0 0 :::443 :::* LISTEN tcp 0 0 :::3843 :::* LISTEN tcp 0 0 :::80 :::* LISTEN Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 936164233 @/com/ubuntu/upstart unix 2 [ ACC ] STREAM LISTENING 936165112 /var/run/saslauthd/mux
iptables 設定
$ iptables -nL Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
runlevel 3で起動するサービス一覧
# /sbin/chkconfig --list | grep "3:on" ajaxterm 0:off 1:off 2:on 3:on 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off httpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off modules_dep 0:off 1:off 2:on 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off saslauthd 0:off 1:off 2:off 3:on 4:off 5:off 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off vzquota 0:on 1:on 2:on 3:on 4:on 5:on 6:on xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
メモリの空き状況
# free -m total used free shared buffers cached Mem: 1024 73 950 0 0 46 -/+ buffers/cache: 27 996 Swap: 1024 0 1024
ディスクの空き状況
# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 50G 677M 50G 2% / none 512M 0 512M 0% /dev/shm