---
title: "mongodb服务器NTP时间同步"
author: "welcome66"
date: "2017-09-08T15:04:11Z"
tags: ["MongoDB", "NTP"]
categories: ["数据库"]
slug: "mongodb-ntp"
draft: false
lastmod: "2017-09-08T15:04:11Z"
id: 2392614
url: "https://welcome66.iteye.com/blog/2392614"
---

在对mongodb集群进行设置授权登录的时候，需要注意的是集群服务器一定要保证时间是一致的，否则会出现莫名问题。

使用NTP进行服务器的时间校正：

#ntpdate pool.ntp.org

或

#ntpdate ntp.fudan.edu.cn