rackhubを使ってみた
fluxflexを使っていたらrackhubなるものを見つけたので触ってみた。
3時間までなら無料らしい。
あなたのための、クラウド上のlocalhost。10秒で使える設定完了済み開発サーバー
- ユーザ登録
- SSH公開鍵登録
- クレジットカード情報登録
- Rack(サーバ?)作成
ログイン
Rackの画面の[Rackの概要]にSSH接続方法という欄のコマンドでssh接続できる。
デフォルトは50056ポートを使ってるみたい。
ssh rackhuber@[RACK名].rackbox.net -p 50056 -A
ディスク
xxxの部分にはRack名が入る。
rackhuber@my(xxx):~$ df Filesystem 1K-ブロック 使用 使用可 使用% マウント位置 /dev/simfs 20971520 7087980 13883540 34% / tmpfs 196608 0 196608 0% /lib/init/rw tmpfs 196608 0 196608 0% /dev/shm
メモリ
rackhuber@my(xxx):~$ free total used free shared buffers cached Mem: 393216 15808 377408 0 0 3992 -/+ buffers/cache: 11816 381400 Swap: 524288 0 524288
ネットワーク
OpenVZを使っているみたい。
rackhuber@my(xxx):~$ LANG=C /sbin/ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:400 (400.0 B) TX bytes:400 (400.0 B) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:540 errors:0 dropped:0 overruns:0 frame:0 TX packets:332 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43807 (42.7 KiB) TX bytes:83833 (81.8 KiB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.22.0.165 P-t-P:172.22.0.165 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
言語
rubyは1.8.7も入ってた(最新パッチ)
easy_install,pear,gem,cpan等も入ってるみたい。
(pipは入ってない。入れればいいだけだけど)
rackhuber@my(xxx):~$ python -V Python 2.6.6 rackhuber@my(xxx):~$ php -v PHP 5.3.10 (cli) (built: Feb 6 2012 17:41:01) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies rackhuber@my(xxx):~$ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] rackhuber@my(xxx):~$ perl -v This is perl 5, version 12, subversion 4 (v5.12.4) built for x86_64-linux Copyright 1987-2010, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
パッケージ
/rhbにインストール済みのパッケージが入ってるみたい。
rackhuber@my(xxx):~$ ls -l /rhb 合計 56 drwxr-xr-x 6 root root 4096 2010-12-20 18:47 apache-ant-1.8.2 drwxr-xr-x 2 root root 4096 2012-02-22 05:26 bin drwxr-xr-x 4 root root 4096 2012-02-05 21:34 erlang-r14b03 drwxr-xr-x 3 root root 4096 2012-02-05 23:54 etc drwxr-xr-x 7 root root 4096 2012-02-22 11:30 imagemagick-6.7.5-6 drwxr-xr-x 3 root root 4096 2012-02-05 20:31 jdk drwxr-xr-x 6 root root 4096 2012-02-06 15:37 libmemcached-1.0.4 drwxr-xr-x 5 root root 4096 2012-02-06 11:37 memcached-1.4.13 drwxr-xr-x 3 root root 4096 2011-12-14 21:26 mongodb-linux-x86_64-2.0.2 drwxr-xr-x 13 mysql mysql 4096 2012-02-05 23:23 mysql-5.6.4-m7 drwxr-xr-x 10 root root 4096 2012-02-06 19:10 nginx-1.0.11 drwxr-xr-x 7 root root 4096 2012-02-06 12:02 php-5.3.10 -rwxr-xr-x 1 root root 636 2012-03-08 08:42 rackhub_init.sh drwxr-xr-x 11 root root 4096 2012-02-22 12:09 src
感想
他のPaaSのより自由度の高い何かを想像していたが、開発環境の入ったVPSみたい。
確かに便利だがメモリ384MB,ディスク8GBで30日980円はちょっと高いかな。