我对Linux Shell脚本编程非常陌生,不知道是否有人可以帮助我完成以下工作。
我创建了一个脚本来与我的linux机器同步时间,但似乎只有一个exec命令完成
#!/bin/bash
#Director SMS Synch Time Script
echo The current date and time is:
date
echo
echo Synching GTS Cluster 1 directors with SMS.
echo
echo Changing date and time for director-1-1-A
exec ssh root@128.221.252.3
我正在尝试使用docker和ambari挂载本地hadoop集群,问题是ambari安装检查显示NTP没有运行,需要知道与ambari一起安装的服务是否工作。我在容器中检查了ntpd,并尝试启动它们,但失败了
[root@97ea7075ca78 ~]# service ntpd start
Starting ntpd: [ OK ]
[root@97ea7075ca78 ~]# service ntpd status
ntpd dead but pid file exists
有没有办法在这些容器中启
CentOS 6.x = OpenVZ
我想在我的vps主机上运行NTP服务器。这个是可能的吗?
当我尝试启动ntpd时,它会立即失败,并给出以下错误:
Mar 14 22:47:44 ev1 ntpd[3456]: cap_set_proc() failed to drop root privileges: Operation not permitted
我已经将其本地化为/etc/sysconfig/ntpd中的一个设置。
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/
如果我们将任何服务器放在/etc/ntp.conf中,则ceph命令不会响应。
在centos 7上有3个ceph节点,其中有/etc/ntp.conf:
driftfile /vat/lib/ntp/drift
restrict 0.0.0.0 mask 0.0.0.0
server 0.ua.pool.ntp.org iburst
server 1.ua.pool.ntp.org iburst
server 2.ua.pool.ntp.org iburst
server 3.ua.pool.ntp.org iburst
includefile /etc/ntp/crypto/pw
k
来自man ntpdate上的CentOS 7.2服务器:
Disclaimer: The functionality of this program is now available in the ntpd program. See the -q command line option in the ntpd - Network Time Protocol (NTP) daemon page. After a suitable period of mourning, the ntpdate program is to be retired from this d