热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

当前位置 :| 主页>Linux发行版>其他Linux>

Solaris时间同步配置

来源: 作者: 时间:2008-03-06 Tag: 点击:
1、为稳定起见,配置成C/S结构。无论服务器和客户端,都只需要建立配置文件/etc/inet/ntp.conf即可。
2、服务器端配置
2.1 创建/etc/inet/ntp.conf
2.2 修改/etc/inet/ntp.conf文件如下格式:
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 0

driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
2.3 修改S74xntpd
在/etc/rc2.d/S74xntpd文件中,修改有/usr/lib/inet/xntpd的两行,在/usr/lib/linet/xntpd后添加 -l /var/ntp/ntp.log
两行变为:
(/usr/sbin/ntpdate $ARGS; sleep 2; /usr/lib/inet/xntpd -l /var/ntp/ntp.log) &

/usr/lib/inet/xntpd -l /var/ntp/ntp.log
2.4 重起xntp进程,方法如下:
#/etc/rc2.d/S74xntpd  stop
#/etc/rc2.d/S74xntpd  start
3、客户端配置
3.1 创建/etc/inet/ntp.conf
3.2 了解服务器的IP地址
3.3 修改/etc/inet/ntp.conf为如下格式:
#请将SERVER-IP替换成真正的ntp的Server
peer SERVER-IP
server  SERVER-IP
fudge SERVER-IP stratum 0
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable 
最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册