Vik*_*ngh 1 linux centos ntp redhat-enterprise-linux
我正在使用 RHEL 6.5。我使用此链接上的步骤编译了 ntp-4.2.8 。
但我没有ntp.conf文件。ntp.conf需要启动ntpd,但编译后,我的系统上没有ntp.conf。我发现ntp.conf.texi,ntp.conf.5,ntp.conf.def,ntp.conf.html等。
执行命令ntpd -l logg我在logg文件中收到错误:
getconfig: Couldn't open </etc/ntp.conf>
Run Code Online (Sandbox Code Playgroud)
我正在使用与./configure此链接相同的命令。我怎样才能生成ntp.conf?
您应该自己创建文件。它在教程中,它说:
cat > /etc/ntp.conf << "EOF"
# Asia
server 0.asia.pool.ntp.org
# Australia
server 0.oceania.pool.ntp.org
# Europe
server 0.europe.pool.ntp.org
# North America
server 0.north-america.pool.ntp.org
# South America
server 2.south-america.pool.ntp.org
driftfile /var/lib/ntp/ntp.drift
pidfile /var/run/ntpd.pid
EOF
Run Code Online (Sandbox Code Playgroud)
整个命令将创建您的配置文件。当然,您可能希望编辑文件并仅选择与您所在区域相关的服务器。
| 归档时间: |
|
| 查看次数: |
3004 次 |
| 最近记录: |