Centos 7

From Federal Burro of Information
(Redirected from Centos 7 Notes)
Jump to navigationJump to search

new stuff, things to think about:

  • systemd ( systemctl for all service admin work )
  • firewalld "easy mode" for firewall , no more iptables directly.
  • ntp not installed by default. ( ntpdate is installed by default )

vmware tools install centos 7 , vmware 5.5

yum -y install perl
mkdir /mnt/cdrom && mount /dev/cdrom /mnt/cdrom && mkdir -p /mnt/tmpfs
mount -o size=500M -t tmpfs none /mnt/tmpfs && cp /mnt/cdrom/VMwareTools-9.4.5-1598834.tar.gz /mnt/tmpfs
cd /mnt/tmpfs && tar zxvf VMwareTools-9.4.5-1598834.tar.gz && cd vmware-tools-distrib
./vmware-install.pl
( answer all the questions )
reboot

Systemd

Making it so that a service restarts if it fails:

Under the [Service] section in the file i added the following 2 lines:

Restart=always
RestartSec=3

After saving the file we need to reload the daemon configurations to ensure systemd is aware of the new file

systemctl daemon-reload

Make it so that a service starts after the network is up ( Crudely )

[Unit]
After=network.target auditd.service

how did it boot?

systemd-analyze critical-chain