Centos 7: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
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 | vmware tools install centos 7 , vmware 5.5 | ||
Line 9: | Line 15: | ||
( answer all the questions ) | ( answer all the questions ) | ||
reboot | 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 |
Latest revision as of 15:54, 8 December 2017
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