菜鸟免费申请了EC2的Ubuntu微型实例。想登陆上去瞧瞧,EC2的微型实例长啥样。
第一步呢就是登陆,起初菜鸟是想用Windows上的Putty登陆来着,发现又要自己手工生成 PPK,甚是麻烦,不如装个Cygwin,直接用ssh命令
ssh -i <YourCertificateFileName>.pem ubuntu@<YourEC2IP>
其中,<YourCertificateFileName>.pem 是你在申请EC2微型实例的过程中下载到的一个文件(EC2为你的实例生成的); <YourEC2IP> 是你申请到的机器的地址了
第二步就是在机器上四处瞧瞧:
- 系统的基本信息: (内核版本: 3.13.0-24-generic 操作系统: Ubuntu 系统位数: 64位)
ubuntu@ip:~$ uname -a
Linux ip-172-31-42-30 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
- 硬盘大小: 7.8G
ubuntu@ip:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 899M 6.5G 12% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 284M 8.0K 284M 1% /dev
tmpfs 59M 184K 59M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 295M 0 295M 0% /run/shm
none 100M 0 100M 0% /run/use
- CPU信息:(处理器个数: 1,核心数: 1,二级缓存: 20M )
ubuntu@ip:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
stepping : 7
microcode : 0x70d
cpu MHz : 1795.672
cache size : 20480 KB
physical id : 1
siblings : 1
core id : 1
cpu cores : 1
apicid : 34
initial apicid : 34
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes avx hypervisor lahf_lm
bogomips : 3591.34
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
- 内寸大小: 588M
ubuntu@ip:~$ free -m
total used free shared buffers cached
Mem: 588 442 145 0 81 290
-/+ buffers/cache: 71 517
Swap: 0 0 0