Last active
October 13, 2018 05:04
-
-
Save ytensor42/eb035ab1a1d1156b4fda9c0c40c74a39 to your computer and use it in GitHub Desktop.
Centos 7 Notes
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
| # 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