HP-UX NTP server setting method

xiaoxiao2021-03-05  20

Note: 192.168.0.1 is NTP Server Address

Use Local Server AS NTP Server:

NTP Server: a. Vi /etc/rc.config.d/netdaemonsexport NTPDATE_SERVER = export xntpd = 1export xntpd_args = "- l /var/adm/syslog/ntp.log"b. Vi /etc/ntp.confadd Two Lines in The end: server 127.127.1.1fudge 127.127.1.1fudge 127.127.1.1 stratum 10c. /sbin/init.d/xntpd stop

d. /sbin/init.d/xntpd start

Client: a. Vi /etc/rc.config.d/netdaemonsexport ntpdate_server = ---> export ntpdate_server = "192.168.0.1" export xtpd = 1export XNTPD_ARGS = "- l /var/adm/syslog/ntp.log"b Vi /etc/ntp.confadd One line in the end: server 192.168.0.1 preferc. /sbin/init.d/xntpd stop

d. /sbin/init.d/xntpd start

转载请注明原文地址:https://www.9cbs.com/read-38467.html

New Post(0)