Today, when synchronizing the data, prompt rsync:failed to set time on "xxxx": Operation is not permitted, generally speaking, if it is not the server time is incorrect or the permissions are not set, the following cloud Habitat Community Small series for everyone to organize some information
The first method:
The "XXXX" appears on the rsync:failed to set "s":
finished, you need to configure the NTP service to be self-booting# Chkconfig NTPD on# chkconfig--list ntpdNTPD 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: OffBefore the configuration, the use of ntpdate manually synchronize the next time, so that the local and external time server
CentOS Time Out of sync workaroundOne, synchronize the system time with ntpdate from the time serverIf the system does not have a ntpdate commandYum Install NTPOnce the installation is finished, test it.As follows:[Email protected] ~]# ntpdate-u time.nuri.net8 June 10:20:01 ntpdate[15932]: Step
.
Offset the time difference between our server and the remote server, in milliseconds.
Jitter The average time difference between two samples, in milliseconds.
Controlling access to an NTP server
By default, the
last week, the company's internal server has a time delay problem, the server time correction operationDirectAnyway, I think the system comes with the time synchronization server is not too good, self search some
Linux synchronization time, at least two ways: rdate,ntpdate two kinds ofFirst detect if the system is installed with these two commandsRpm-qa |grep RdateRpm-qa |grep NtpdateIf you install something, you can use Yum-y install Rdate/ntpdateRdateFeature Description: Displays the date and time of the other host.syntax:rdate [-ps][host name or IP address ...]Additional instructions: execute the rdate instructio
First, installation environment:CentOS 7 Linux version 3.10.0-229.el7.x86_64Ntp-4.2.6p5-19.el7.centos.x86_64Second, installation and configuration2.1 InstallationNTP can be installed directly from Yum, using Rpm-qa NTP to see if the NTP service is installed, or if it can be upgraded with Yum install NTP, or without upgrading.Command:Yum Install
".
After the NTPD is started, the client waits a few minutes before it synchronizes with time, otherwise it prompts the no server suitable forsynchronization found error.
3.2.4, client sync with time server:
In fact, in the above introduction of the
performCrontab-e0 * * * ntpdate 192.168.211.22 >>/root/ntpdate.log 2>1Sync every night 9 o'clockReport:When querying with ntpdate-d, you will find the following 2 messages that cause no server suitable for synchronization found error:Error 1. Server Dropped:strata too highThe NTP client runs Ntpdate ServerIP, and no server
need to configure the NTP service to be self-booting
# Chkconfig NTPD on
# chkconfig--list ntpd
NTPD 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off
Before the configuration, the use of ntpdate manually synchronize the next time, so that the local and external time server
IOS NTP implementation to reject the association . Routers that run Cisco IOS can being unable to synchronize to an NTP server if it's a Windows system that runs the W32Time s Ervice. If the server is not a synchronized, the routers is not a able to transmit to and receive packets from the
client in the LAN to connect to the server for synchronization, but refuse to modify the server time.restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Default Configuration
Note:The default configuration is to prohibit all clients from modifying the server time. Therefore, I think the default configuration is su
Use Ubuntu14.04 to synchronize NTPD network time, first by referring to the following addresshttp://www.douban.com/note/171309770/You can get a common NTPD address and directly synchronize the server time with the command:[Email protected]:/home/alex# date-s "2015-01-01"Thursday, January 01, 2015 00:00:00 CST[Email protected]:/home/alex# DateThursday, January 01,
When you log in to a Linux server, you may find that it is not the same as the actual time, you need to adjust
Installing ntpdate>yum Install NTP650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/89/44/wKiom1gN35iiBXIFAAFGLdxzCAo813.jpg "title=" Qq20161024181625.jpg "alt=" Wkiom1gn35iibxifaafgldxzcao813.jpg "/>
Input ntpdate time.nist.gov650) this.width=650; "src=" Http://s5.51cto.com/w
Ntp service and time synchronizationI had a small project that was completely self-developed. I thought it was a very simple NTP service. I had to spend more than two hours on it (I used to work on O M and didn't pay too much attention to it, therefore, this technology is easy to use.) record here to avoid wasting time
I had a small project that was completely self-developed. I thought it was a very simple NTP service. I had to spend more than two hours on it (I used to work on O M and didn't pay too much attention to it, therefore, this technology is easy to use.) record here to avoid wasting time in the future.
In the target environment, five Linux centos 6.3 servers are used as the synchronization
, but does not allow the client to modify, log on to my NTP server allow time synchronization for any IP (this item cannot be duplicated with its default option)Restrict default nomodify Add an intranet address# Hosts on local network is less restricted.#restrict 192.168.1.0 Mask 255.255.255.0 nomodify notrapRestrict 192.168.10.0 mask 255.255.255.0 nomodify
1. "The NTP socket is on use, exiting" error appears. The reason for this is that the system NTPD server is running and can be via PS aux | grep ntpd View, if you still want to manually synchronize time, you must first stop the service, the command is:service ntpd stop or/etc/init.d/ntpd stop2. Npdate time.windows.com or ntpdate us.pool.ntp.org will be able to s
article is a very good time client software that can work in windows98, 2000, and XP systems, when "Allow other computers to sync to this computer" is selected, this computer can be used as a time server.
◆ V. set the time server
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.