修改主机名
只要启动慢就要想到/etc/hosts中用户名没改
(a)
[root@dong ~]# vi /etc/hosts 127.0.0.1 localhost Dong localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
(b)
[root@dong ~]# hostname Dong
(c)
[root@Dong ~]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=Dong
2. 修改网卡信息
[root@Dong ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet ONBOOT=yes 开机网卡是否启动 NM_CONTROLLED=yes BOOTPROTO=dhcp USERCTL=no PEERDNS=yes IPV6INIT=no
3. 修改默认语言
[root@Dong ~]# cat /etc/sysconfig/i18n LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16"
4.也可以用setup进行修改参数
[root@Dong ~]# setup
┌────────┤ Choose a Tool ├───────————──┐
│ │
│ Authentication configuration │
│ Firewall configuration │
│ Network configuration │
│ System services │
│ │
│ ┌──────────┐ ┌──────┐ │
│ │ Run Tool │ │ Quit │ │
│ └──────────┘ └──────┘ │
│ │
│ │
└────────────────────────── ────┘
Authentication configuration:身份验证配置
Firewall configuration:防火墙配置
Network configuration:网络配置
System services :系统服务
Authentication Configuration the menu
┌───────────────────────────── ─┐
│ User Information Authentication │
│ [ ] Cache Information [ ] Use MD5 Passwords │
│ [ ] Use LDAP [*] Use Shadow Passwords │
│ [ ] Use NIS [ ] Use LDAP Authentication │
│ [ ] Use IPAv2 [ ] Use Kerberos │
│ [ ] Use Winbind [*] Use Fingerprint reader │
│ [ ] Use Winbind Authentication │
│ [*] Local authorization is sufficient│
└────────────────────────── ────┘
Firewall configuration the menu
┌────────┤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 │
└────────────────────────── ────┘
Network configuration the menu
Select Action Device configuration
DNS configuration
Save&Quit Quit
System services the menu
┌──────────────────┤ Services ├──────────────────┐
│ │
│ What services should be automatically started? │
│ │
│ [ ] abrt-ccpp ↑ │
│ [ ] abrtd │
│ [ ] acpid │
│ [ ] atd │
│ [ ] auditd │
│ [ ] blk-availability │
│ [ ] cpuspeed │
│ [*] crond │
│ [ ] haldaemon │
│ [ ] ip6tables ↓ │
│ │
│ ┌────┐ ┌────────┐ │
│ │ Ok │ │ Cancel │ │
│ └────┘ └────────┘ │
│ │
│ │
└───────────────────────────────────────────┘
the end
本文出自 “董利强” 博客,请务必保留此出处http://6207422.blog.51cto.com/6197422/1841338
原文地址:http://6207422.blog.51cto.com/6197422/1841338