Failed to restart ntpd.service

Alpha Dog picture Alpha Dog · Sep 21, 2016 · Viewed 22.5k times · Source

I'm trying to fix error RequestTimeTooSkewed i get when trying to deploy a project to amazon servers i found this article.

http://www.emind.co/how-to/how-to-fix-amazon-s3-requesttimetooskewed/

I was following the steps but stucked at restarting the ntp service.

I used service.ntpd restartcommand but i get a error saying

Failed to restart ntpd.service: Unit ntpd.service not found.

How can i fix this?

Answer

greenhorn picture greenhorn · Sep 21, 2016

Try

$ systemctl start ntpd 

If that doesn't work, probably ntp is not installed. Try installing it first.

$ sudo yum install ntp