当前位置:网站首页>Set up enterprise NTP time server
Set up enterprise NTP time server
2022-06-29 23:51:00 【Brother Xing plays with the clouds】
One 、 brief introduction :
NTP(NetworkTime Protocol, Network time protocol ) It's for Distributed Time The server Time synchronization with the client .NTP be based on UDP Message transmission , The use of UDP The port number is 123.
Use NTP The purpose of is to synchronize the clock of all devices with clock in the network , Keep the clocks of all devices in the network consistent , So that the device can provide a variety of applications based on a unified time .
For time errors The server Downtime , So run NTP Local system of , It can accept synchronization from other clock sources , It can also be used as a clock source to synchronize other clocks , And can synchronize with other devices .
Two 、 Build time server ( Server side )
1. Set up the environment
Environmental Science :CentOS6.4
Server192.168.126.1
Client192.168.126.2
2. install NTP yum –yinstall ntp
3. Modify the configuration file to add this line vim /etc/ntp.conf
restrict 192.168.126.0255.255.255.0 nomodify notrap
4. Find these two lines and remove the comments vi /etc/ntp.conf
#server127.127.1.0
#fudge127.127.1.0stratum 10
5. Start up the service
Chkconfig --level 345 ntpon
6. Start the service
/etc/init.d/ntpd start
7. The firewall needs to be turned on 123 Port or turn off the firewall
-A INPUT -m state --state NEW -m tcp -p tcp --dport 123 -jACCEPT
3、 ... and 、 client
1. Synchronize the time with the server and execute the following command
To perform manually or with crontab To execute
manual :ntpdate 192.168.126.1
crontab –e
0 21 * * * ntpdate 192.168.126.1 >> /root/ntpdate.log 2>&1
2. View synchronization status ntpq –p
3. The firewall needs to be turned on 123 Port or turn off the firewall
-A INPUT -m state --state NEW -m tcp -p tcp --dport 123 -jACCEPT
边栏推荐
- 提供有效的绩效评估
- 十大券商:“推土机行情”再现
- C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
- Shell positional parameter variables and predefined variables
- matlab习题 —— 程序控制流程练习
- Solr基础操作5
- Provide effective performance evaluation 
- label问题排查:打不开标注好的图像
- Set up security groups, record domain names, and apply for SSL certificates
- [Shangshui Shuo series] day 8
猜你喜欢

为什么 JSX 语法这么香?

“微博评论”的高性能高可用计算架构

剑指 Offer 15. 二进制中1的个数

Et la tarte aux framboises 4? Quels sont les jeux possibles?

FPGA开发(2)——IIC通信

C pointer advanced 2-- > function pointer array callback function simplifies calculator code, and implements qsort function based on callback function simulation

LC:最大子数组和

After working in the software development industry for six years, I changed my ideas in those years

Yunhe enmo Guoqiang, identifiez - le, saisissez - le, avant l'ébullition de la base de données nationale

Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
随机推荐
Sword finger offer 15 Number of 1 in binary
FPGA开发(2)——IIC通信
Matlab exercises -- program control process exercise
Halcon实用:焊点检出设计思路
软件测试 接口测试 Postman测试工具 接口测试的流程 执行接口测试 接口关联 环境变量和全局变量 内置动态参数以及自动有的动态参数
网上开户选哪个证券公司?还有,在线开户安全么?
开始“收割”!钉钉调整“钉钉Teambition”免费用人数上限,超十人将无法正常用
[Shangshui Shuo series] day 8
Gradle serialization 7- configuration signature
请指教同花顺软件究竟是什么?究竟网上开户是否安全么?
Under the epidemic, I left my job for a year, and my income increased 10 times
雲和恩墨蓋國强,識別它、抓住它,在國產數據庫沸騰以前
Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
漫画安全HIDS、EDR、NDR、XDR
Fund information disclosure
Solr基础操作4
How about counting Berry Pie 4? What are the possible ways to play?
Leetcode(76)——最小覆盖子串
Matplotlib histogram of Matplotlib visualization plt bar()
Top ten securities companies: "bulldozer market" reappearance