This document provides an overview and summary of key information about CentOS 7, including:
- CentOS is a Linux distribution derived from Red Hat Enterprise Linux (RHEL) and provides a free, community-supported version of RHEL.
- Details on how CentOS 7 is based on and compatible with RHEL 7 and supports common server configurations like LAMP stacks.
- Information on installing and deploying CentOS 7 virtually using tools like VirtualBox and Vagrant.
- An introduction to new technologies in CentOS 7 like the systemd init system.
4. CentOS䛻䛴䛔䛶
● Red Hat Enterprise Linux(RHEL)䜽䝻䞊䞁
䛻Ꮫ⾡ྥ䛡䛻Scientific Linux
● RHEL䛛䜙ၟᶆ䜔ၟ⏝䛾䝟䝑䜿䞊䝆䜢㝖እ
● Community ENTerprise Operating System
● Red Hat♫䛾᭷ൾ䝃䝫䞊䝖䜢ᚲせ䛸䛧䛺䛔⏝㏵
● 2014ᖺ1᭶Red Hat♫䛜ᨭ⾲᫂
● RHEL䛸㧗䛔ᛶ
23. NetworkManager
● nmcli
○ 䝁䝬䞁䝗䝷䜲䞁䛷䝛䝑䝖䝽䞊䜽タᐃ䛧䜎䛩䚹
○ 䝃䞊䝞䞊⟶⌮⪅ྥ䛡䛻䚸䛣䛣䛷䛿nmcli䜢Ꮫ⩦䛧䜎䛩䚹
● 䝩䝇䝖ྡ䛾ኚ᭦
○ nmcli general hostname 䝩䝇䝖ྡ
○ bmcli g ho 䝩䝇䝖ྡ 䛸┬␎䛷䛝䜛䚹
○ /etc/hostname䝣䜯䜲䝹䛻タᐃ䛥䜜䜛䚹
24. NetworkManager
● nmcli device
○ ≀⌮䝕䝞䜲䝇䛾⟶⌮
● 䝕䝞䜲䝇䛾୍ぴ
○ nmcli device
○ nmcli d 䛸┬␎ฟ᮶䜛䚹
● 䝕䝞䜲䝇䛾ヲ⣽
○ nmcli device show 䝕䝞䜲䝇ྡ
○ nmcli d s 䛸┬␎ฟ᮶䜛䚹
25. NetworkManager
● nmcli connection
○ ᥋⥆タᐃ䛾⟶⌮
● ᥋⥆≧ἣ䛾୍ぴ
○ nmcli connection
○ nmcli c 䛸┬␎䛷䛝䜛䚹
○ nmcli --fields 㡯┠ connection 䛷᳨⣴⾲♧䜒ฟ᮶䜛䚹
● ᥋⥆䛾ヲ⣽
○ nmcli connection show ྡ๓䜒䛧䛟䛿UUID
○ nmcli c s ྡ๓䜒䛧䛟䛿UUID䚷䛸┬␎䛷䛝䜛䚹
○ ྡ๓䛻䝇䝨䞊䝇䛜䛒䜛䛸䛝䛿䚸䛂”䛃䝎䝤䝹䜽䜷䞊䝔䞊䝅䝵
䞁䛷ᅖ䜣䛷ᣦᐃ䛩䜛䚹
○ nmcli c s “Wired connection 1”
26. NetworkManager
● ᥋⥆䛾᭷ຠ
○ nmcli connection up ྡ๓䜒䛧䛟䛿UUID
● ᥋⥆䛾↓ຠ
○ nmcli connection down ྡ๓䜒䛧䛟䛿UUID
● ᥋⥆䛾ືస☜ㄆ
○ nmcli c s ྡ๓䜒䛧䛟䛿UUID 䛷IP䜰䝗䝺䝇䜢☜ㄆ
○ ping 䛷㏻䜢☜ㄆ
○ nmcli c d ྡ๓䜒䛧䛟䛿UUID 䛷↓ຠ
○ ping 䛷㏻ฟ᮶䛺䛔䛾䜢☜ㄆ
○ nmcli c u ྡ๓䜒䛧䛟䛿UUID 䛷᭷ຠ
○ ping 䛷㏻䜢☜ㄆ
27. NetworkManager
● タᐃ䛾ኚ᭦
○ nmcli connection modify ྡ๓ 㡯┠ タᐃ್
○ nmcli c m 䛸┬␎䛷䛝䜛䚹
● IP䜰䝗䝺䝇䛸䝀䞊䝖䜴䜵䜲䛾ኚ᭦
○ DHCP䜢ᡭືタᐃ䜈ኚ᭦䛧䜎䛩䚹
○ nmcli c m ྡ๓ ipv4.method manual
○ nmcli c m ྡ๓ ipv4.addresses "IP䜰䝗䝺䝇/䝛䝑䝖䝬䝇
䜽 䝀䞊䝖䜴䜵䜲"
○ タᐃኚ᭦䛧䛯䛰䛡䛷䛿䚸タᐃ್䛿᭷ຠ䛻䛺䜙䛺䛔䚹
○ ᥋⥆䜢down/up䛧䛯ᚋ䛷タᐃ್䛜᭷ຠ䛻䛺䜛䚹
28. NetworkManager
● DNS䛾ኚ᭦
○ nmcli c m ྡ๓ ipv4.dns "DNS䝃䞊䝞䞊䛾IP䜰䝗䝺䝇"
● タᐃ್䛾㏣ຍ䛸๐㝖
○ ᪤Ꮡ䛾್䛻㏣ຍ䛩䜛ሙྜ䛿䚸㡯┠ྡ䛾๓䛻䛂䠇䛃䜢䛡
䜛䚹
○ ᪤Ꮡ䛾್䛛䜙๐㝖䛩䜛ሙྜ䛿䚸㡯┠ྡ䛾๓䛻䛂䞊䛃䜢
䛡䜛䚹
○ nmcli c m ྡ๓ +㡯┠ྡ ್
○ nmcli c m ྡ๓ -㡯┠ྡ ್
● DHCP䛾タᐃ
○ nmcli c m ྡ๓ ipv4.method auto