Modify the settings-general linux technology-Linux technology and application information during Linux installation. For more information, see. The best way to understand linux is to test it. This is more effective than reading many documents.
View the time zone information of the current machine when you log on to the machine.
Vi/etc/sysconfig/clock
This file shows the time zone configuration.
ZONE = "Asia/Chongqing"
UTC = false
ARC = false
The first line indicates the time zone you selected.
The second line indicates whether you use UTC time. This is actually the same as GMT, that is, Greenwich Mean Time.
When Linux is started, a script (/etc/rc. d/rc. sysinit) runs the/sbin/hwclock program to copy the current hardware clock to the system time. Hwclock assumes that the hardware clock has been set to a local clock, unless it has the -- utc parameter. The script file reads the settings of the/etc/sysconfig/clock file. Therefore, you can directly modify the configuration file without modifying the script, and set the UTC line as needed, set to true or false.
When/etc/localtime exists, the system time zone is displayed based on the time zone represented by this file. When/etc/localtime does not exist, the system time zone is subject to GMT (or UTC; it's messy. I will try again later.
Network Settings
This is related to the IP address, gateway, and host name. Dns. If you have obtained it automatically during installation and want to modify it, you can
Files to be modified often have
/Etc/sysconfig/network
/Etc/sysconfig/network-scripts/ifcfg-eth0
/Etc/resolv. conf
/Etc/hosts
The following are my settings
/Etc/sysconfig/network
The gateway is specified here.
NETWORKING = yes
NETWORKING_IPV6 = no
GATEWAY = 192.168.1.1
HOSTNAME = localhost. localdomain
/Etc/sysconfig/network-scripts/ifcfg-eth0
Here, we mainly specify the IP address acquisition method (static), IP address, subnet mask, and network type.
# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE = eth0
# BOOTPROTO = dhcp
BOOTPROTO = static
IPADDR = 192.168.1.21
NETMASK = 255.255.255.0
TYPE = Ethernet
HWADDR = XX: XX
ONBOOT = yes
/Etc/resolv. conf
Specify DNS (I am suffering from a loss here, and the network address cannot be resolved before it is set)
Search localdomain
Nameserver 192.168.1.1
/Etc/hosts
I did not set it. It is used to define the host name.
Keyboard layout
This should be the same for everyone. I don't want to select another one, but I will study how to modify the keyboard layout in another day.
Grub Password
During the installation process, you are prompted to set the grub Password. If you didn't set it at that time, you can set it after entering the system, this password is used when you need an emergency system. It is similar to restoring the password in the Active Directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service