Windows Time Server, linux time synchronization and windows Time Synchronization

Source: Internet
Author: User
Windows is used as the time server. linux and windows are used for time synchronization-Linux Enterprise Application-Linux server application information. For details, refer to the following section. I found a lot of information and didn't use windows for time service. I used linux to synchronize windows Time. I finally found some software and finally got it done. I wrote it to share it with you to avoid detours.

First in http://www.meinberg.de/english/sw/index.htm
Download a windows NTP service program: ntp00001.zip
Windows 192.168.1.32
1. The installation prompt is to set the server address. the IP address of the local widows machine I set
2. ntpd is controlled in:
Control Panel->; Administrative Tools->; Component Service-NetworkTimeProtocol
3. You can start the ntpd daemon to maintain time synchronization.
4. There is an ntp configuration file ntp. conf in the C: \ WINNT directory.
Set:
Server 127.127.1.0 prefer
Fudge 127.127.1.0 stratum 10
5. Determine whether ntp works: ntpq-p

I used RedHat 9.0 for synchronization between linux and Windows.
Run ntpdate 192.168.1.32.
You will find that your time has changed, the same as 192.168.1.32.
If an error occurs during command execution
1. Tip: 7 Dec 19:24:55 ntpdate [2120]: the NTP socket is in use, exiting
This process already exists on your linux machine. Input: ps-ef | grep ntpd
Kill ntp Processes

2. Prompt: No Server suitable for synchronization found
This is the most common problem.
When the customer process is started, an error is reported. The solution is to start the process in about 3-5 minutes.
I want to synchronize time with Windows every 10 minutes.
1. Create your own crontab file and create a file date. cron. You can use any text
The editor creates a new file, and then writes the commands to be run and the time to be periodically executed to the file.
Vi date. cron Add the following command to be run and the time to be periodically executed
*/10 */usr/sbin/ntpdate 192.168.1.32
Then save the disk and exit
2. Use the crontab command to install the file and make it the crontab file of the user. Type:
Crontab date. cron
This file has been created
3. Run the following command:
Crontab-l (view the job sequence) to view the job
For example:
[Root @ NXD-TEST root] # crontab-l
# Do not edit this file-edit the master and reinstall.
# (Date. cron installed on Tue Dec 7 18:22:42 2004)
# (Cron version -- $ Id: crontab. c, v 2.13 1994/01/17 03:20:37 vixie Exp $)
*/10 */usr/sbin/ntpdate 192.168.1.32
Now it's okay. Linux synchronizes with the server every 10 minutes.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.