Noupload(Free Server(beta))
IDEAxIDEAの記事を見て気になったので試してみた。
40分有効なUbuntu 14.04 LTSなサーバーがボタンひとつ押して1分ほどで立ってしまうサービス。無料です(どうしても延長したい時は有料)。
環境としては20GBのストレージと512MBのメモリ。
続きを読むから。
とりあえず試してみる
Start Serverを押す
1分ほど待つ(画面が変わらない時は更新)
IPとrootのパスワードが表示されるのでsshでつなぎに行く
$ ssh root@104.131.***.*** The authenticity of host '104.131.***.*** (104.131.***.***)' can't be established. RSA key fingerprint is (truncated). Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '104.131.***.***' (RSA) to the list of known hosts. root@104.131.***.***'s password: Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.8.0-36-generic x86_64) * Documentation: https://help.ubuntu.com/ The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@8e6f5a6f451e:~#
apache2とか入れてみる
最小構成で動いているらしく、gccやapache2とかは入っていない模様。必要であればapt-getでインストール。
というわけでapache2とphp5を導入。結構スムーズ(動作速度的な意味で)に導入できた。
延長したい時
起動から40分で自動的に消滅するが、「ちょっといいところなんだから止まらないでー!」みたいな状況などになり延長したい時はBitcoin(CoinBase利用)かクレジットカード(Swipe利用)で以下の料金(ドルの場合)を支払うと延長できる。
- 1時間:0.50ドル
- 24時間:2.00ドル
実験にいかが
動作もそこそこスムーズなので、いろんな実験に使えそう。もちろん使い捨てだからと言って悪いことに使っちゃだめだよ。
ちなみに、cpuminerでscryptは7kh/sくらいは出ていた。以下のcpuinfoを見ればわかるが1 CPUしかないのでお察しください。
あと立てられるサーバーはDockerのコンテナの中で動いている模様(これも以下のmountを見ればわかるが.dockerinitがマウントされているので)。
参考情報
/proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 62 model name : Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz stepping : 4 microcode : 0x1 cpu MHz : 2399.998 cache size : 15360 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt vnmi ept fsgsbase tsc_adjust smep erms bogomips : 4799.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
df
Filesystem 1K-blocks Used Available Use% Mounted on rootfs 20511356 1992704 17453696 11% / none 20511356 1992704 17453696 11% / tmpfs 250936 0 250936 0% /dev shm 65536 0 65536 0% /dev/shm /dev/disk/by-label/DOROOT 20511356 1992704 17453696 11% /etc/hosts tmpfs 50188 312 49876 1% /etc/resolv.conf tmpfs 250936 0 250936 0% /proc/kcore
mount
none on / type aufs (rw,relatime,si=d4c5512dd12eb59a) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (ro,relatime) tmpfs on /dev type tmpfs (rw,nosuid,mode=755) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666) /dev/disk/by-label/DOROOT on /.dockerinit type ext4 (ro,relatime,errors=remount-ro,data=ordered) tmpfs on /etc/resolv.conf type tmpfs (ro,relatime,size=50188k,mode=755) /dev/disk/by-label/DOROOT on /etc/hostname type ext4 (ro,relatime,errors=remount-ro,data=ordered) /dev/disk/by-label/DOROOT on /etc/hosts type ext4 (ro,relatime,errors=remount-ro,data=ordered) proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime) proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime) proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime) proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime) tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755)
free -m
total used free shared buffers cached Mem: 490 190 299 0 13 131 -/+ buffers/cache: 45 444 Swap: 0 0 0
起動直後のps auxw
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 4444 624 ? Ss 08:23 0:00 /bin/sh -c /home/startup.sh root 8 0.0 0.2 17956 1408 ? S 08:23 0:00 /bin/bash /home/startup.sh root 12 0.0 0.6 61364 3056 ? S 08:23 0:00 /usr/sbin/sshd -D root 13 0.1 0.7 90960 3928 ? Ss 08:26 0:00 sshd: root@pts/0 root 24 0.0 0.4 18172 2012 pts/0 Ss 08:26 0:00 -bash root 33 0.0 0.2 15568 1136 pts/0 R+ 08:26 0:00 ps auxw
(おまけ)cat /home/startup.sh
#!/bin/bash echo root:$MYPASSWD |chpasswd /usr/sbin/sshd -D