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/wyfs02/M00/89/41/wKioL1gN4ECg9V4yAAAzzoZb3oM77
local machine. This mode is started when the SRC address path contains a single colon ":" delimiter.such as: rsync-avz [email protected]:/home/user/src./src4) Copy files from the remote rsync server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.such as: rsync-av [email Protected]::www/databack5) Copy files from the local machine to the remote rsync server. The mode is started when the DES path information contains the "::" delimiter.such as
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, 2015 00:00:01 CST[Email protected]:/home/alex# ntpdate s1a.time.edu.cn2 May 10:24:22 ntpdate[3246]: Step time server 202.112.10.60 off
in the Ntpd-network time Protocol (NTP) daemon page. After a suitable period ofMourning, the Ntpdate program was to being retired from this distributionSynopsisntpdate [ -46BBDQSUV] [-a key] [-e Authdelay] [-K keyfile] [-o version] [-p samples] [-tTimeout] [-u user_name] server [...]DESCRIPTION[Refer to the Linux Man manual for details]Date Time ServerSynchronization time, you must have a time server. Normally, we don't have to build it ourselves, we
The allocation rules for read and write locks are as follows:1. As long as no thread holds a specified read-write lock for writing, then any number of threads can hold the read-write lock for reading;2. A read-write lock can be allocated for write only if no thread holds a specified read-write lock for reading or for writing.This type of access is also known as shared-exclusive lockout (shared-exclusion)So I think of a scenario like this:Thread A to write data, the lock has not been blocked, the
variable shared between threads, which consists of two actions: one thread waits for the condition variable to be set up, and the other thread causes the condition to be set. To prevent competition, the use of condition variables is always combined with a mutex.Allows a thread to wait for a specific condition to be sent in a non-competitive manner when used with a condition variable and mutexThe condition itself is protected by a mutex, and the thread must lock the mutex before changing the con
In some server architectures, you will experience file synchronization issues, such as a site mirroring backup, synchronization of files to multiple CDN nodes, and so on. There are two main issues that need to be addressed
1. How to implement file synchronization problem? 2. When do I perform a sync operation?
File synchronization can be used Rsync+ssh, when to synchronize their own operation? Maybe some people would think of Cron, this is true, can
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.