Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

第 20 章 System Utilities 配置工具

目錄

20.1. CentOS 6
20.1.1. system-config-date
20.1.2. system-config-firewall
20.1.3. system-config-securitylevel
20.1.4. system-config-language
20.1.5. system-config-keyboard
20.1.6. system-config-network
20.1.7. ntsysv
20.1.8. lokkit
20.1.9. system-config-kdump
20.1.10. system-config-services
20.1.11. authconfig-tui

20.1. CentOS 6

setup

timeconfig

system-config-cluster

system-config-httpd

system-config-nfs

system-config-samba

20.1.1. system-config-date

				┌────────┤ Timezone Selection ├────────┐
				│ │
				│ Select the timezone for the system. │
				│ │
				│ Asia/Bahrain ↑ │
				│ Asia/Baku ▒ │
				│ Asia/Bangkok ▒ │
				│ Asia/Beirut ▮ │
				│ Asia/Bishkek ▒ │
				│ Asia/Brunei ▒ │
				│ Asia/Choibalsan ▒ │
				│ Asia/Chongqing ↓ │
				│ │
				│ [*] System clock uses UTC │
				│ │
				│ ┌────┐ ┌────────┐ │
				│ │ OK │ │ Cancel │ │
				│ └────┘ └────────┘ │
				│ │
				│ │
				└──────────────────────────────────────┘
			

20.1.2. system-config-firewall

				┌───────────┤ Firewall Configuration ├───────────┐
				│ │
				│ A firewall protects against unauthorized │
				│ network intrusions. Enabling a firewall blocks │
				│ all incoming connections. Disabling a firewall │
				│ allows all connections and is not recommended. │
				│ │
				│ Firewall: [*] Enabled │
				│ │
				│ ┌────┐ ┌───────────┐ ┌────────┐ │
				│ │ OK │ │ Customize │ │ Cancel │ │
				│ └────┘ └───────────┘ └────────┘ │
				│ │
				│ │
				└────────────────────────────────────────────────┘
			

20.1.3. system-config-securitylevel

				┌────────────┤ Firewall Configuration ├────────────┐
				│ │
				│ A firewall protects against unauthorized │
				│ network intrusions. Enabling a firewall blocks │
				│ all incoming connections. Disabling a firewall │
				│ allows all connections and is not recommended. │
				│ │
				│ Security Level: ( ) Enabled (*) Disabled │
				│ │
				│ SELinux: Enforcing │
				│ Permissive │
				│ Disabled │
				│ │
				│ ┌────┐ ┌───────────┐ ┌────────┐ │
				│ │ OK │ │ Customize │ │ Cancel │ │
				│ └────┘ └───────────┘ └────────┘ │
				│ │
				│ │
				└──────────────────────────────────────────────────┘
			

20.1.4. system-config-language

				┌──────────┤ Language Selection ├──────────┐
				│ │
				│ Select the language for the system. │
				│ │
				│ English (Hong Kong) ↑ │
				│ English (India) ▒ │
				│ English (Ireland) ▮ │
				│ English (New Zealand) ▒ │
				│ English (Philippines) ▒ │
				│ English (Singapore) ▒ │
				│ English (South Africa) ▒ │
				│ English (USA) ↓ │
				│ │
				│ ┌────┐ ┌────────┐ │
				│ │ OK │ │ Cancel │ │
				│ └────┘ └────────┘ │
				│ │
				│ │
				└──────────────────────────────────────────┘
			

20.1.5. system-config-keyboard

				┌─────────────┤ Keyboard Selection ├──────────────┐
				│ │
				│ Select the appropriate keyboard for the system. │
				│ │
				│ Slovenian ↑ │
				│ Serbian ▒ │
				│ Serbian (latin) ▒ │
				│ Swedish ▒ │
				│ Turkish ▒ │
				│ Ukrainian ▮ │
				│ United Kingdom ▒ │
				│ U.S. English ↓ │
				│ │
				│ ┌────┐ ┌────────┐ │
				│ │ OK │ │ Cancel │ │
				│ └────┘ └────────┘ │
				│ │
				│ │
				└─────────────────────────────────────────────────┘
			

20.1.6. system-config-network

system-config-network

			
          ┌──────┤ Select Action ├──────┐
          │                             │
          │    Device configuration     │
          │    DNS configuration        │
          │                             │
          │                             │
          │                             │
          │  ┌───────────┐   ┌──────┐   │
          │  │ Save&Quit │   │ Quit │   │
          │  └───────────┘   └──────┘   │
          │                             │
          │                             │
          └─────────────────────────────┘
			
			

system-config-network-cmd

				[root@r910 ~]# system-config-network-cmd
				DeviceList.Ethernet.eth0.AllowUser=False
				DeviceList.Ethernet.eth0.BootProto=dhcp
				DeviceList.Ethernet.eth0.Device=eth0
				DeviceList.Ethernet.eth0.DeviceId=eth0
				DeviceList.Ethernet.eth0.HardwareAddress=78:2B:CB:3B:4B:74
				DeviceList.Ethernet.eth0.IPv6Init=False
				DeviceList.Ethernet.eth0.NMControlled=True
				DeviceList.Ethernet.eth0.OnBoot=False
				DeviceList.Ethernet.eth0.Type=Ethernet
				DeviceList.Ethernet.eth1.AllowUser=False
				DeviceList.Ethernet.eth1.BootProto=dhcp
				DeviceList.Ethernet.eth1.Device=eth1
				DeviceList.Ethernet.eth1.DeviceId=eth1
				DeviceList.Ethernet.eth1.HardwareAddress=78:2B:CB:3B:4B:76
				DeviceList.Ethernet.eth1.IPv6Init=False
				DeviceList.Ethernet.eth1.NMControlled=True
				DeviceList.Ethernet.eth1.OnBoot=False
				DeviceList.Ethernet.eth1.Type=Ethernet
				DeviceList.Ethernet.eth2.AllowUser=False
				DeviceList.Ethernet.eth2.BootProto=dhcp
				DeviceList.Ethernet.eth2.Device=eth2
				DeviceList.Ethernet.eth2.DeviceId=eth2
				DeviceList.Ethernet.eth2.HardwareAddress=78:2B:CB:3B:4B:78
				DeviceList.Ethernet.eth2.IPv6Init=False
				DeviceList.Ethernet.eth2.NMControlled=True
				DeviceList.Ethernet.eth2.OnBoot=False
				DeviceList.Ethernet.eth2.Type=Ethernet
				DeviceList.Ethernet.eth3.AllowUser=False
				DeviceList.Ethernet.eth3.BootProto=dhcp
				DeviceList.Ethernet.eth3.Device=eth3
				DeviceList.Ethernet.eth3.DeviceId=eth3
				DeviceList.Ethernet.eth3.HardwareAddress=78:2B:CB:3B:4B:7A
				DeviceList.Ethernet.eth3.IPv6Init=False
				DeviceList.Ethernet.eth3.NMControlled=True
				DeviceList.Ethernet.eth3.OnBoot=False
				DeviceList.Ethernet.eth3.Type=Ethernet
				HardwareList.Ethernet.eth3.Card.ModuleName=bnx2
				HardwareList.Ethernet.eth3.Description=Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
				HardwareList.Ethernet.eth3.Name=eth3
				HardwareList.Ethernet.eth3.Status=system
				HardwareList.Ethernet.eth3.Type=Ethernet
				HardwareList.Ethernet.eth2.Card.ModuleName=bnx2
				HardwareList.Ethernet.eth2.Description=Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
				HardwareList.Ethernet.eth2.Name=eth2
				HardwareList.Ethernet.eth2.Status=system
				HardwareList.Ethernet.eth2.Type=Ethernet
				HardwareList.Ethernet.eth1.Card.ModuleName=bnx2
				HardwareList.Ethernet.eth1.Description=Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
				HardwareList.Ethernet.eth1.Name=eth1
				HardwareList.Ethernet.eth1.Status=system
				HardwareList.Ethernet.eth1.Type=Ethernet
				HardwareList.Ethernet.eth0.Card.ModuleName=bnx2
				HardwareList.Ethernet.eth0.Description=Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
				HardwareList.Ethernet.eth0.Name=eth0
				HardwareList.Ethernet.eth0.Status=system
				HardwareList.Ethernet.eth0.Type=Ethernet
				ProfileList.default.Active=True
				ProfileList.default.ActiveDevices.1=eth0
				ProfileList.default.ActiveDevices.2=eth1
				ProfileList.default.ActiveDevices.3=eth2
				ProfileList.default.ActiveDevices.4=eth3
				ProfileList.default.DNS.Domainname=
				ProfileList.default.DNS.Hostname=r910.example.com
				ProfileList.default.DNS.PrimaryDNS=202.96.134.133
				ProfileList.default.DNS.SearchList.1=example.com
				ProfileList.default.DNS.SecondaryDNS=202.96.128.68
				ProfileList.default.DNS.TertiaryDNS=
				ProfileList.default.HostsList.1.AliasList.1=r910
				ProfileList.default.HostsList.1.Hostname=r910.example.com
				ProfileList.default.HostsList.1.IP=192.168.80.33
				ProfileList.default.HostsList.2.AliasList.1=localhost
				ProfileList.default.HostsList.2.Hostname=localhost.localdomain
				ProfileList.default.HostsList.2.IP=127.0.0.1
				ProfileList.default.HostsList.3.AliasList.1=r910
				ProfileList.default.HostsList.3.AliasList.2=localhost6.localdomain6
				ProfileList.default.HostsList.3.AliasList.3=localhost6
				ProfileList.default.HostsList.3.Hostname=r910.example.com
				ProfileList.default.HostsList.3.IP=::1
				ProfileList.default.ProfileName=default
			

20.1.7. ntsysv

ntsysv

				┌──────────────────┤ Services ├──────────────────┐
				│ │
				│ What services should be automatically started? │
				│ │
				│ [*] NetworkManager ↑ │
				│ [*] acpid ▮ │
				│ [*] atd ▒ │
				│ [ ] auditd ▒ │
				│ [*] autofs ▒ │
				│ [*] avahi-daemon ▒ │
				│ [*] bluetooth ▒ │
				│ [ ] certmonger ▒ │
				│ [ ] cgconfig ▒ │
				│ [ ] cgred ▒ │
				│ [*] cpuspeed ▒ │
				│ [*] crond ▒ │
				│ [*] cups ▒ │
				│ [ ] dnsmasq ▒ │
				│ [ ] firstboot ▒ │
				│ [*] haldaemon ↓ │
				│ │
				│ ┌────┐ ┌────────┐ │
				│ │ Ok │ │ Cancel │ │
				│ └────┘ └────────┘ │
				│ │
				│ │
				└────────────────────────────────────────────────┘
			

20.1.8. lokkit

lokkit

禁用Iptable與SELinux

				lokkit --disabled --selinux=disabled
			

20.1.9. system-config-kdump

20.1.10. system-config-services

system-config-services

20.1.11. authconfig-tui

authconfig-tui