这个是命令打错了,ntpd -np 。应该是ntpq -np
/sbin/ntpd: The 'pidfile' option requires an argument.
ntpd - NTP daemon program - Ver. 4.2.6p5
Usage: ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
Try 'ntpd --help' for more information.
exit 1
这个是ntp服务ip地址输入有问题。我是因为输入了掩码所以报错。换成纯ip成功。