The NTP server under Linux refers to the network time synchronization protocol, which is used to synchronize network time and time in the Linux system, making Linux time more accurate. Here's how to use the NTP server under Linux.
a, ntp configuration file
1. /etc/ntp.conf
The main configuration file NTP services, directory different Linux version of the file where possible It will be different.
2. /usr/share/zoneinfo
Specifies the time setting file for each major time zone. /usr/share/zoneinfo/Asia/Shanghai sets the file for the time zone in mainland China.
3. /etc/sysconfig/clock
Time Zone Settings File
4. /etc/localtime
Local System Time Settings File
>
[root@linuxidc1 ~]# grep -v “^#” /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery//Deny all operations for the default client< Br>
restrict -6 default kod nomodify notrap nopeer noquery //Setup for ipv6
restrict 127.0.0.1 //Allow all operations on the local address
restrict -6 :: 1
server 0.rhel.pool.ntp.org //Set the upper server to do the synchronous ip address
server 1.rhel.pool.ntp.org
server 2 .rhel.pool.ntp.org
server 127.127.1.0 //local address
fudge 127.127.1.0 stratum 10 //This line is the level of the time server. Set to 0 to be the top level. If you want to update the time to other NTP servers, please don't set it to 0
driftfile /var/lib/ntp/drift //record the last NTP server and upper NTP Time spent on server connection
keys /etc/ntp/keys Previous123Next page Total 3 pages
eCryptFS is a file encryption system in Linux system. It can encrypt files or direc
The rmdir and rm commands are deleted commands on Linux systems. The difference is
In the Ubuntu system operation, the account can not be logged in after setting the PATH environment
Ubuntu 12.04 system boot, the interface stopped in half can not enter the system, showing Checking B
Linux disk failure causes the system to run slowly solution
Linux system how to install and configure ClusterShell tool
How to install tracking tool jira
Linux how to install and configure rz/sz command
Ubuntu Chromium how to install Flash
Linux can not completely remove LibreOffice how to solve?
Ways to debug network performance using tools under Linux
What should I do if Xmanager fails to connect after the Solaris system is installed?
Steps to install Brackets on Ubuntu
What if Ubuntu 13.10 can't start VirtualBox?
Linux find naming fast find poisoning file operation example
QQ browser settings do not pop up security warnings
What should I do if the Win8 system cannot find WIFI?
Install vc++ runtime error error: 1935
Windows 8.1 runs the Dragon Valley game with a blue screen problem solution
Video conversion to H264 format graphic tutorial
The real reason for the reduction of the remaining space of the system disk is
We don't want to see someone's circle of friends in WeChat and can't delete someone.
Windows 7 system update does not need to restart the tips
Win7 system running cmd command prompts "Windows can not find files" failure cause and solution
Win8 advanced skills control boot automatically start program