DM8168 NTP设置
来源:互联网 发布:极米z4x无限连 mac 编辑:程序博客网 时间:2024/06/07 13:22
1. Ubuntu NTP服务器搭建
1.1 安装ntp服务 sudo apt-get install ntp
1.2 修改配置文件/etc/ntp.con
1 # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
2
3 3 driftfile /var/lib/ntp/ntp.drift
4 driftfile /var/lib/ntp/ntp.drift
43 driftfile /var/lib/ntp/ntp.drift
4
5
6 # Enable this if you want statistics to be logged.
7 #statsdir /var/log/ntpstats/
8
9 statistics loopstats peerstats clockstats
10 filegen loopstats file loopstats type day enable
11 filegen peerstats file peerstats type day enable
12 filegen clockstats file clockstats type day enable
13
14
15 # You do need to talk to an NTP server or two (or three).
16 server ntp.ubuntu.com
17
18
19 # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
20 # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
21 # might also be helpful.
22 #
23 # Note that "restrict" applies to both servers and clients, so a configuration
24 # that might be intended to block requests from certain clients could also end
25 # up blocking replies from your own upstream servers.
26
27 # By default, exchange time with everybody, but don't allow configuration.
28 restrict -4 default kod notrap nomodify nopeer noquery
29 restrict -6 default kod notrap nomodify nopeer noquery
30
31 # Local users may interrogate the ntp server more closely.
32 restrict 127.0.0.1
33 restrict ::1
34
35 # Clients from this (example!) subnet have unlimited access, but only if
36 # cryptographically authenticated.
37 #restrict 192.168.123.0 mask 255.255.255.0 notrust
38
39
40 # If you want to provide time to your local subnet, change the next line.
41 # (Again, the address is an example only.)
42 broadcast 192.168.1.255
43
44 # If you want to listen to time broadcasts on your local subnet, de-comment the
45 # next lines. Please do this only if you trust everybody on the network!
46 disable auth
47 broadcastclient
1.3 启动ntp服务 sudo service ntp start
2. DM8168 NTP客户端
2.1 下载源码: http://support.ntp.org/bin/view/Main/SoftwareDownloads
2.2 编译生成可执行文件
tar xfvz ntp-XXX.tar.gz
cd ntp-XXX
./configure
修改 sntp/libopts/Makefile libntp/Makefile ntpdate/Makefile 将gcc g++修改为交叉编译环境中对应的编译器
对三个目录依次进行make
将ntpdate/ntpdate拷贝到目标设备上
2.3 测试ntpdate
在目标设备上执行ntpdate x.x.x.x // x.x.x.x为ntp服务dstip
2.4 编辑crontab (注意此时需要将ntpdate放知道系统的执行目录下)
crontab -e
*/15 * * * * ntpdate x.x.x.x
- DM8168 NTP设置
- NTP设置
- DM8168的tftp设置
- linux的NTP设置
- NTP 服务器设置
- WINDOWS NTP SERVER设置
- CentOS 设置NTP服务器
- ntp 设置笔记
- 本地NTP服务设置
- Linux设置ntp服务
- Routos设置ntp
- ubuntu 设置ntp服务
- ntp服务器设置
- NTP时间同步设置
- ntp原理与设置
- Linux 系统设置NTP
- ntp服务器设置
- windows ntp服务器设置
- android怎样实现自动点击功能
- 终端
- windows下编译less css
- 根据图片网络地址获取图片的byte[]类型数据
- 面向对象与形而上学
- DM8168 NTP设置
- myeclipse Alt+/快捷键失效解决办法
- Java IO笔记(2)典型应用
- 在Mac上输入特殊符号和字母
- 编写一个程序,将d:\java目录下的所有.java文件复制到d:\jad目录下,并将原来文件的扩展名从.java改为. jad
- jdbc connection c3p0详细配置
- C语言深度解剖读书笔记(1.关键字的秘密)
- 怎样使用google
- [SDK]新浪微博请求授权显示错误页面的解决方法(error:redirect_uri_mismatch)