- 论坛徽章:
- 0
|
[求助]如何设置ntp?[求助]
谢谢wdbj!
我在hp找到的:
Start the NTP daemon.
Edit the /etc/rc.config.d/netdaemons file. Set the variable NTPDATE_SERVER equal to an NTP time server that is reachable. For example:
NTPDATE_SERVER=15.13.108.1
This will run the /usr/sbin/ntpdate command just before the NTP daemon is started, and bring your system clock very close to the other server to start.
Set the XNTPD variable to 1.
This will cause the daemon to be started automatically when your system makes the transition from run level 1 to 2.
Start the daemon using the startup script:
/sbin/init.d/xntpd start
Verify the daemon process is running. Type:
ps -ef | grep ntp
The line /usr/sbin/xntpd should appear in the list of running processes.
很好用!8-) |
|