Skip to content

Instantly share code, notes, and snippets.

@wh13371
Created September 9, 2019 10:37
Show Gist options
  • Save wh13371/1350dfeb0aaf49b25f566bca390fe4a7 to your computer and use it in GitHub Desktop.
Save wh13371/1350dfeb0aaf49b25f566bca390fe4a7 to your computer and use it in GitHub Desktop.
install NTP on CentOS 7
#!/bin/bash
sudo yum install ntp
sudo firewall-cmd --permanent --add-service=ntp
sudo firewall-cmd --reload
sudo systemctl start ntpd
ntpq -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment