- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2018-08-05T11:23:46+09:00","","")
#author("2018-08-06T17:45:50+09:00","","")
[[CentOS7]]
*環境確認 [#b7d30a82]
**OSのバージョン確認 [#qa1d5957]
|BGCOLOR(black):COLOR(white):|c
|# cat /etc/redhat-release|
|[root@localhost ~]# cat /etc/redhat-release|
**カーネルバージョンの確認 [#z8d238c3]
|BGCOLOR(black):COLOR(white):|c
|# uname -a|
|[root@localhost ~]# uname -a|
**CPUの確認 [#za2a3371]
|BGCOLOR(black):COLOR(white):|c
|# less /proc/cpuinfo|
|[root@localhost ~]# less /proc/cpuinfo|
**メモリの確認 [#p54a18b0]
|BGCOLOR(black):COLOR(white):|c
|# less /proc/meminfo|
|[root@localhost ~]# less /proc/meminfo|
**free メモリーの使用状況の確認[#kd82e2ae]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# free|
**swapon swap構成情報確認[#q484adaa]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# swapon -s|
**内臓ハードディスクの確認 [#y19999ff]
|BGCOLOR(black):COLOR(white):|c
|# fdisk -l|
|[root@localhost ~]# fdisk -l|
**df ディスク構成情報確認[#c3695bff]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# df|
**RAID確認 [#y30c0b13]
|BGCOLOR(black):COLOR(white):|c
|# ls -al /dev/md0|
|[root@localhost ~]# ls -al /dev/md0|
**ディスクパーティション確認 [#a9d31129]
|BGCOLOR(black):COLOR(white):|c
|# less /proc/partitions|
|[root@localhost ~]# less /proc/partitions|
**GRUBローダのインストール先確認 [#mcb1cf6a]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/grub.conf|
|[root@localhost ~]# less /etc/grub.conf|
**MBRのFilesystemのマウントポイント /boot [#l3b1c4ab]
|BGCOLOR(black):COLOR(white):|c
|# df /boot|
|[root@localhost ~]# df /boot|
**printenv 環境変数の確認 [#x4d74c7b]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# printenv|
**タイムゾーンの確認 [#wfabcfd1]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/sysconfig/clock|
|[root@localhost ~]# less /etc/sysconfig/clock|
**ホスト名の確認 [#ub205e33]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# hostname|
|[root@localhost ~]# less /etc/sysconfig/network|
**ネットワーク [#r1508649]
|BGCOLOR(black):COLOR(white):|c
|# ifconfig -a|
|[root@localhost ~]# ifconfig -a|
**NIC(eth0)設定確認 [#f2c84065]
**ネットワークインターフェース情報の確認 [#fbf5c402]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/sysconfig/network-scripts/ifcfg-eth0|
|[root@localhost ~]# ip address show|
DEVICE="eth0"
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
HWADDR="00:FF:00:FF:00:FF"
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0
NETWORK=xxx.xxx.xxx.0
NM_CONTROLLED="yes"
ONBOOT="yes"
**NIC(eth0)設定確認 [#u20c1e29]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth0|
|DEVICE="eth0" &br; BOOTPROTO=static &br; BROADCAST=xxx.xxx.xxx.255 &br; HWADDR="00:00:FF:00:FF:00" &br; IPADDR=xxx.xxx.xxx.xxx &br; NETMASK=255.255.255.0 &br; NETWORK=xxx.xxx.xxx.0 &br; NM_CONTROLLED="yes" &br; ONBOOT="yes"|
**NIC(eth1)設定確認 [#radc65e1]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/sysconfig/network-scripts/ifcfg-eth1|
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth1|
**NIC(eth2)設定確認 [#v6b8a94b]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/sysconfig/network-scripts/ifcfg-eth2|
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth2|
**ルーティングテーブル確認 [#hc5eac86]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# ip route|
**ルーティング情報確認 [#z1d7e212]
|BGCOLOR(black):COLOR(white):|c
|# route -n|
|[root@localhost ~]# route -n|
**ホスト名前解決の確認 [#bdf4fc9f]
**名前解決に使用するDNSの確認 [#bdf4fc9f]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/resolv.conf|
|[root@localhost ~]# less /etc/resolv.conf &br; search hogehoge.local &br; nameserver xxx.xxx.xxx.xxx|
search hogehoge.local
nameserver xxx.xxx.xxx.xxx
**名前解決の順序指定 [#h935a4ef]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/nsswitch.conf|
**hosts 確認 [#w999f5a5]
|BGCOLOR(black):COLOR(white):|c
|# more /etc/hosts|
|[root@localhost ~]# more /etc/hosts|
**hosts.allow 確認 [#d653b9eb]
|BGCOLOR(black):COLOR(white):|c
|# more /etc/hosts.allow|
|[root@localhost ~]# more /etc/hosts.allow|
**hosts.deny 確認 [#adea5d47]
|BGCOLOR(black):COLOR(white):|c
|# more /etc/hosts.deny|
|[root@localhost ~]# more /etc/hosts.deny|
**ログローテート確認 [#vde369a8]
|BGCOLOR(black):COLOR(white):|c
|# more /etc/logrotate.d/sysklogd.base|
|[root@localhost ~]# more /etc/logrotate.d/sysklogd.base|
**logrotate.confの確認 [#y1c47cfb]
|BGCOLOR(black):COLOR(white):|c
|# more /etc/logrotate.conf|
|[root@localhost ~]# more /etc/logrotate.conf|
**cron設定確認(root) [#c41a3b98]
|BGCOLOR(black):COLOR(white):|c
|# crontab -l|
|[root@localhost ~]# crontab -l|
**基本OS情報(名前解決の順序指定) [#dd15d915]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/nsswitch.conf|
|[root@localhost ~]# less /etc/nsswitch.conf|
**SELinuxの状態確認。Disabledと表示されればSELinuxは無効化されている。 [#z40699fe]
|BGCOLOR(black):COLOR(white):|c
|# getenforce|
|[root@localhost ~]# getenforce|
**kdump OS起動時の動作確認 [#s8af6fbd]
|BGCOLOR(black):COLOR(white):|c
|# chkconfig kdump --list|
|[root@localhost ~]# chkconfig kdump --list|
**最後に実行されたhwclockコマンドの引数確認 [#z2f6389d]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/adjtime|
|[root@localhost ~]# less /etc/adjtime|
**ユーザーグループ確認 [#n99259c2]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/group|
|[root@localhost ~]# less /etc/group|
**ユーザー確認 [#s1aa4778]
|BGCOLOR(black):COLOR(white):|c
|# less /etc/passwd|
|[root@localhost ~]# less /etc/passwd|
**mon のバージョン確認 [#s6f084ef]
|BGCOLOR(black):COLOR(white):|c
|# mon -v|
|[root@localhost ~]# mon -v|
**BIND 設定確認 [#zffefa64]
|BGCOLOR(black):COLOR(white):|c
|# named-checkzone xxx.local /var/named/chroot/var/named/xxx.local.db|
|[root@localhost ~]# named-checkzone xxx.local /var/named/chroot/var/named/xxx.local.db|
**Oracle tnsname.oraを確認 [#ea822e9d]
|BGCOLOR(black):COLOR(white):|c
|# more /opt/oracle/instantclient_10_2/network/admin/tnsnames.ora|
|[root@localhost ~]# more /opt/oracle/instantclient_10_2/network/admin/tnsnames.ora|