首页 | 公司简介 | 数据恢复 | 成功案例 | 技术中心 | 客户服务 | 服务报价 | 联系我们 | 技术论坛  
 
  北京总部: 4006-505-808
  上 海 部: 021-58358765
  深 圳 部: 0755-83692929
  浙 江 部: 13666673722
  广 州 部: 020-83821091
  重 庆 部: 023-86870422
  福 建 部: 0591-83300680
  昆 明 部: 15987117834
  其它地区: 4006-505-808

中国石油管理局-Oracle数据库恢
工商银行山东分行-AIX删除LV数
濮阳市地方税务局-CHKDSK后数据
台湾HD公司-FreeBSD Nas无法启
promise乔鼎硬盘阵列数据恢复成
IBM EXP300 磁盘阵列数据恢复成
NAS 8100无法挂载数据卷
Liteon-Dell 2850服务器数据恢

RAID损坏后 对数据的完整备份
LINUX FSCK数据出错灾难应急方
误删除、误格式化数据灾难应急
误GHOST、误一键恢复灾难应急方
磁盘未被格式化,是否格式化数据
raid磁盘阵列OFFLINE后的应急方
硬盘出现异响应急处理
您当前的位置:首页 >> 技术中心 >> 服务器数据恢复文栏 >> 正文

NTP服务器和客户端的设置及使用(EN版)

     -s             Specify the directory to be used for creating
                    statistics files

     -t trustedkey  Add a key number to the trusted key list

     -v             Add a system variable

     -V             Add a system variable listed by default

 


[size=2]3. Setting up an NTP client[/size]


1. Copy over /etc/inet/ntp.client to /etc/inet/ntp.conf :

# cp /etc/inet/ntp.client /etc/inet/ntp.conf


The default ntp.client file uses multicast to receive NTP updates.

This can be changed to broadcast as well if you wish to limit where

the NTP client can get its updates. (Broadcast packets are not

forwarded to other subnets whereas multicast packets are).

#
# /etc/inet/ntp.client
#
# An example file that could be copied over to /etc/inet/ntp.conf;

it
# provides a configuration for a host that passively waits for a

server
# to provide NTP packets on the ntp multicast net.
#

multicastclient 224.0.1.1


2. Start the xntpd daemon

# /usr/lib/inet/xntpd -m &


(We start the xntpd daemon with the -m argument to listen for

multicast packets if you were using broadcast as a method of

receiving NTP updates you would use -b as the argument)

 

[size=2]4. Using the ntpdate command[/size].


The ntpdate utility sets the local date and time. To determine the

correct time, it polls the Network Time Protocol (NTP) servers on

the hosts given as arguments. This utility must be run as root on

the local host. It obtains a number of samples from each of the

servers and applies the standard NTP clock filter and selection

algorithms to select the best of these.

It can be run on a regular basis from cron(1M) as an alternative to

running a daemon. Doing so once every one to two hours will result

in precise enough timekeeping to avoid stepping the clock. If you're

are already running the xntpd daemon you can't use the ntpdate

command. Trying to do so will generate the following error :

# ntpdate champ
23 Sep 14:55:52 ntpdate[19780]: the NTP socket is in use, exiting


You must also be root user to run the ntpdate command or you will

see an error like this returned:

% ntpdate champ
23 Sep 14:44:36 ntpdate[19743]: bind() fails: Permission denied


In this example we specify the ntp server "jedi" to sync with.

# ntpdate jedi
23 Sep 17:12:21 ntpdate[20963]: adjust time server 129.148.192.147

offset 0.001422 sec

 

[size=2]5. Using the ntpq command[/size]


ntpq queries NTP servers which implement the recommended NTP mode 6

control message format, about current state. It can also request

changes in that state. The program can be run in interactive mode;

本新闻共9页,当前在第6页  1  2  3  4  5  6  7  8  9  

上一篇:代理服务器知识大全
下一篇:光纤交换机zone的划分
返回首页 | 联系我们 | 关于我们 | 招聘信息 | 友情链接 | 网站地图 | 合作伙伴

版权所有 北京北亚数据恢复中心
24小时免费咨询电话:4006-505-808 或 800-810-5880
中关村部:北京市海淀区中关村大街11号E世界A座832B室
皂君庙部:北京市海淀区学院南路68号吉安大厦C座(汇智楼)528室
京ICP备07502730