Skip to content

Instantly share code, notes, and snippets.

@ytensor42
Last active October 13, 2018 05:04
Show Gist options
  • Select an option

  • Save ytensor42/eb035ab1a1d1156b4fda9c0c40c74a39 to your computer and use it in GitHub Desktop.

Select an option

Save ytensor42/eb035ab1a1d1156b4fda9c0c40c74a39 to your computer and use it in GitHub Desktop.
Centos 7 Notes
# Hostname
hostnamectl set-hostname <hostname here>
systemctl reboot
# Timezone
timedatectl list-timezones
timedatectl set-timezone America/Los_Angeles
# NTP
yum install ntpdate
ntpdate 0.us.pool.ntp.org
# Local firewall
firewall-cmd --list
firewall-cmd --permanent --add-port=1234/tcp
firewall-cmd --permanent --add-port={12345/tcp,12346/tcp}
firewall-cms --permanent --add-forward-port=port:80:proto=tcp:toport=8080
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment