◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?
【その他】
・次の試験を模索中・・・
【試験に役立つアドバイス】
・問題は黒本、知識は仮想化関連の書籍を一冊熟読を推奨☆
疎通確認
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# ping 192.168.0.10
Pinging 192.168.1.10 with 32 bytes of data:
Reply from 192.168.1.10: bytes=32 time<10ms TTL=128
Reply from 192.168.1.10: bytes=32 time=20ms TTL=128
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
経路情報を表示する
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# traceroute 192.168.1.1
traceroute to itpro.nikkeibp.co.jp (202.214.174.88), 30 hops max, 38 byte packets
1 192.168.1.1 (192.168.1.1) 0.386 ms 0.363 ms 0.322 ms
2 218.xxx.xxx.xxx (218.xxx.xxx.xxx) 3.426 ms 4.137 ms 5.710 ms
3 218.xxx.xxx.xxx (218.xxx.xxx.xxx) 7.711 ms 3.820 ms 3.123 ms
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
DNSサーバーへ問合せ(名前解決テスト)
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# nslookup 192.168.0.1
サーバー: xxxxx.example.com
Address: 192.168.0.11
名前: XXX.example.com
Address: 192.168.0.1
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
メモリやCPUの使用状況(5秒間隔で2回チェック)
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# vmstat 5 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 300 51472 166104 116804 0 0 0 0 2 2 0 0 100 0 0
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
現在動作中のプロセスを表示する
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 19360 1388 ? Ss Mar08 0:04 /sbin/init
root 2 0.0 0.0 0 0 ? S Mar08 0:01 [kthreadd]
root 3 0.0 0.0 0 0 ? S Mar08 0:00 [migration/0]
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
物理メモリ,仮想メモリの使用状況を表示する
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# free
total used free shared buffers cached
Mem: 502360 450904 51456 0 166104 116768
-/+ buffers/cache: 168032 334328
Swap: 1048568 300 1048268
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
ハードディスクのパーテション情報などを表示する
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# df -h
Filesystem Size Used Avail Use% マウント位置
/dev/sda3 6.7G 3.4G 3.0G 54% /
tmpfs 246M 0 246M 0% /dev/shm
/dev/sda1 248M 37M 199M 16% /boot
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---