CentOS:
1, first set about the system's time zone, use the following command
#cp /usr /share /zoneinfo /Asia /Shanghai /etc/localtime
2, then use the main ntpdate command to synchronize with the time server
#
/usr/sbin/ntpdate ntp.sjtu.edu.cn
3, then the following command lock time
# /sbin /hwclock --systohc
4, the system time is written coms
#clock -w
————————————-Split Line ————&mdash ; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash;
solutions *:
============== run tzselect select the correct time zone
2. Edit /etc/sysconfig/clock and set it as follows:
ZONE=”Asia/Shanghai”
UTC=false
ARC= falsehwclock -w write hardware time /etc/init.d/crond restart
& mdash; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash; parting line & mdash; & mdash; & mdash; & mdash; —&mda sh; & mdash; & mdash; & mdash; & mdash; & mdash; & mdash; & ndash;
Ubuntu:
1, select the time zone
sudo dpkg-reconfigure tzdata
Then follow the prompts to select the serial number corresponding to Asia. After the selection, some new prompts will be displayed -> Enter the city name, such as Shanghai or Chongqing.
2, the time required to set the system
and finally with sudo date -s & ldquo; & rdquo; to modify the local time.
3. Save time setting
After selecting the time zone according to the prompt, execute cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime to change the time to Chinese standard time.
This command takes effect immediately. Running this command prevents the time zone from changing after the system is restarted.
——— Liang Ge Summary
I believe that many users who use Linux systems will feel that command line operations are faster th
Speaking of the command, you have to mention this special command vi it is not only a command, but a
In Windows, Sogou Pinyin input method has a large number of users because of its large vocabulary an
Steam host will enable Linux system
Linux source code installation apache+mysql+php5 and several forums installed
How to create sosreport in linux (RHEL 5.X /RHEL 6.X)
Linux awk array operation details
Linux/UNIX Awk Command Tutorial with Examples
Linux decompression command Daquan /linux package compression command Daquan
How to view the operation record after user login under Linux
Under Linux. a/.so/.la target library difference
User Account Security Control Settings: Windows 7 System Security Settings
How to display the QQ icon of the Win7 system notification area
Drive life, your online drive disk
Windows7 system can not find the network adapter how to solve
About the detailed setting method of the router ip address
Remote access method for Linux and Windows operating systems
Blocking five network functions Let XP system speedy
"Load DLL failed" solution in win7
Can the input method also be backed up? Backup tutorials are open
How to make an appointment to win10? Win10 preview version 64/32 official image download address