Last active
May 29, 2018 20:30
-
-
Save abola/886418ee63dcea79b8513cac660dbec8 to your computer and use it in GitHub Desktop.
Basic settings after CentOS7 minimal installed
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
### | |
# Disable SElinux | |
# | |
mv /etc/selinux/config /etc/selinux/config.ori | |
echo "SELINUX=disabled" > /etc/selinux/config | |
echo "SELINUXTYPE=targeted" >> /etc/selinux/config | |
### | |
# Install NTP service | |
# | |
yum -y install ntpdate | |
echo "# do ntpdate everyday " >> /var/spool/cron/root | |
echo "10 5 * * * /usr/sbin/ntpdate tock.stdtime.gov.tw" >> /var/spool/cron/root | |
echo "" >> /var/spool/cron/root | |
### | |
# CentOS 7 removed "ifconfig" command on minimal install | |
# if you need "ifconfig" command. install "net-tools" package | |
# | |
yum -y install net-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment