⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 sntp 根据简单网络时间同步协议实现的客户端和服务器程序.
💻
字号:
-*- outline -*-* What's this?This is an easy-to-use SNTP (RFC 2030) server/client which is suitablefor a small LAN to synchronize the system clocks of each host.* Requirements- Basic Socket Interface Extensions for IPv6 (RFC 3493)- get/settimeofday(2), adjtime(2)* Quickstart** ClientAt first, obtain an estimated current time from your favorite NTP/SNTPserver.  For example:	$ psntpdate time.nist.gov	Fri Apr 11 11:09:22 JST 2003If the time shown seems reasonable enough, set it to the system clock.	$ psntpdate -r time.nist.govYou may get an error if the system clock hasn't been calibrated yet.It could be forced by the -f option.	$ psntpdate -r -f time.nist.govThen you need to adjust the system clock periodically by running"psntpdate -a" from cron.  Here's a sample crontab entry.	13	*	*	*	*	root	/usr/local/sbin/psntpdate -a time.nist.gov >/dev/nullNote that "psntpdate -a" doesn't change the clock immediately; it'sjust an interface to the adjtime system call.  See adjtime(2) fordetails.** ServerAdd the following line to your /etc/inetd.conf.	ntp	dgram	udp	wait	root	/usr/local/libexec/psntpd	psntpdOr, if you want an IPv6 server:	ntp	dgram	udp6	wait	root	/usr/local/libexec/psntpd	psntpdAnd restart the inetd.	$ killall -HUP inetd* TODONo major functional changes, mostly bug fixes and portabilityimprovements only.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -