Created
September 9, 2019 10:37
-
-
Save wh13371/1350dfeb0aaf49b25f566bca390fe4a7 to your computer and use it in GitHub Desktop.
install NTP on CentOS 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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