centos modify the system time zone

2010-09-12  来源:本站原创  分类:OS  人气:162 

We use the CentOS system in time, perhaps time zones often go awry, sometimes change after the Hai Shi will complete an error, and here's to learn a kind of Method to change this. If not installed, and you use the CentOS systems that use the command yum install ntp

Then: ntpdate us.pool.ntp.org.

Because CentOS is rhas source system and then compiled, many places are all the same.

rhas5 time zones on the paper form, and the current time zone file is in / etc / localtime

Then the other time zone file stored where?

In / usr / share / zoneinfo under

We use the East eight districts of Beijing, Shanghai, time

# Cp-f / usr / share / zoneinfo / Asia / Shanghai / etc / localtime
# Reboot

After the restart, date view of time, view the current time zone date-R, view / modify the time zone and time Linux

One time zone

1. View the current time zone
date-R

2. Modify the set time zone method (1)
tzselect
Method (2) is limited to RedHat Linux and CentOS systems
timeconfig
Method (3) applies to Debian
dpkg-reconfigure tzdata

3. Copy the appropriate time zone file, replace the CentOS system time zone files; or create links to files
cp / usr / share / zoneinfo / $ main time zone / $ time time zone / etc / localtime
In China, you can use:
cp / usr / share / zoneinfo / Asia / Shanghai / etc / localtime

Second, the time

1, check the time and date
date

2, set the time and date will be CentOS system date set to June 10, 1996 order
date-s 06/22/96
The CentOS system time set to 13:52:00 in order
date-s 13:52:00

3. Will write the current time and date BIOS, to avoid failure after reboot
hwclock-w

Third, timing synchronization time
# / Usr / sbin / ntpdate 210.72.145.44> / dev / null 2> & 1

Then we complete the system on the set time zone changes CentOS problem.

相关文章
  • centos modify the system time zone 2010-09-12

    We use the CentOS system in time, perhaps time zones often go awry, sometimes change after the Hai Shi will complete an error, and here's to learn a kind of Method to change this. If not installed, and you use the CentOS systems that use the command

  • CENTOS manually modify the system time 2011-09-09

    We generally use the "date-s" command to modify the system time. Such as the system time set to June 10, 1996 order is as follows. # Date-s 06/10/96 The system time set to 13:12:00 of the command is as follows. # Date-s 13:12:00 ---- Note here t

  • linux time zone to modify the system time to adjust the same time and crontab 2010-11-25

    Install a virtual machine, not too much attention to time zones, time zones found in Shanghai, China's slower than the 16 hours online to find the following methods to share to you: --------------------------------- Time zone configuration file is /

  • CentOS modify IP address, DNS, gateway 2010-04-20

    As always forget which modify the local gateway, Google came out a pile of garbage article, found this today, good backup this: Original Address: http://www.21andy.com/blog/20100227/1717.html 1, CentOS IP address changes Modify the network card IP ad

  • CentOS modify the IP address, DNS, gateway 2010-12-29

    As always forget to change the gateway in which local, Google came out a pile of garbage post, today find this a good backup this: Original Address: http://www.21andy.com/blog/20100227/1717.html A, CentOS IP address changes Modify the corresponding I

  • Grub4Dos hard drive to install Fedora / CentOS Linux operating system 2011-07-15

    From the hard disk Linux / GNU operating system, there is no CD-ROM drives and recordable discs convenient features, and thus has practical value. This article describes the Windows XP environment using Grub4Dos for hard disk installation Fedora / Ce

  • Linux or Unix, how can we modify the system time 2010-04-12

    We generally use the "date-s" command to modify the system time. Such as the system time set to July 26, 2005 order as follows. # Date-s 07/26/2005 The system time set to 23:12:00 in order as follows. # Date-s 11:12:00 Note here that the system

  • DLL file to modify the system to achieve disabled 2010-05-13

    DLL file to modify the system to achieve disabled (more fully) We've been looking for repair materials to the DLL I know that many primary computer novice, and some Internet cafes are very need this material, recently collected in the line out and sh

  • linux modify the system environment variables need to reboot the machine 2010-07-27

    1 summarizes the background In linux system, if you download and install the application, is likely to type its name when "command not found" prompt content. If the target every time to the installation folder, locate the executable file to be t

  • centos modify the host, you need to restart PHP 2010-08-13

    CentOS modify the host file: vi /etc/hosts If you do not restart PHP, site still running when the host using the old configuration, that is, PHP seems to cache the host. After the restart, before coming into effect! This is just speculation, not yet

  • How to make Android an application for permission to modify the system time system 2010-08-17

    Yesterday, out of the setCurrentTimeMillis can not modify a matter of time. Can not be reconciled, this morning he went out. Mainly because SystemClock the setCurrentTimeMillis the permission is signatureOrSystem level, directly with user-permission

  • How to modify the system time Android (application to obtain system privileges) 2010-12-10

    The API of the android is provided SystemClock.setCurrentTimeMillis () function to modify the system time, but unfortunately no matter how you call this function is useless, regardless of simulator or a real machine, in logcat will always get "Unable

  • XEN virtual machine approach to modify the system time 2010-12-17

    xen virtual machine, and sometimes need to modify the time, but simply can not be date-s time to modify the system time. Need the following: 1. Root execute echo 1> / proc / sys / xen / independent_wallclock 2. And then run date-s 14:11:12

  • How to modify the system disk drive letter 2011-02-18

    If your computer has multiple hard drives, letter prone to confusion, and this time we should modify the system disk drive letter, if you want to now re-allocate the disk drive letter, you must first log on as Administrator Windows, and then follow t

  • to modify the system time linux 2011-04-21

    Modify the system time :2007 -01-19 12:30:00 #date -s 01/19/2007 #date -s 12:30:00 #clock -w( Force write system CMOS)

  • Modify the system properties win 7 2011-08-10

    [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ OEMInformation] "Manufacturer" = "System manufacturer" "Model" = "Computer Model" "SupportHours" = "Support Hours" "Su

  • I used Linux command of date - display date and time modify the system 2011-08-25

    I used Linux command of date - display, modify the system date and time This link: http://codingstandards.iteye.com/blog/1157513 (reproduced please indicate the source) Use Description ate command can be used to display and modify the system date and

  • Modify the system error occurred after the date of DB2 2011-06-01

    DB2 import time error: SQL3015N SQL error occurred during processing "-440." SQL0440N not find a compatible argument of type "FUNCTION" called "BASE_TABLE" The authorized routines. SQLSTATE = 42884 update statement can perfor

  • CentOS ways to modify the system time 2010-02-04

    Beginners Linux, find the system time is incorrect, access the Internet through the tutorials, is a summary: 1. View the system time [[email protected] ~] # date Thu Feb 4 14:24:18 CST 2010 Time Zone is CST, in order to completely figure out

  • centos / redhat modify the system default language, copy all files command 2011-09-28

    / Etc/sysconfig/i18n The LANG = "zh_CN.UTF-8" into LANG = "en_US.UTF-8" Copy all folders cp-a soft soft2 All the soft file includes the following subdirectories, copy to soft2 below.