Check current setting:
Code: Select all
systemctl get-defaultDisable GDM:
Code: Select all
systemctl set-default multi-user.targetEnable if needed again:
Code: Select all
systemctl set-default graphical.targetCode: Select all
systemctl get-defaultCode: Select all
systemctl set-default multi-user.targetCode: Select all
systemctl set-default graphical.targetCode: Select all
service --status-allCode: Select all
losetup -f -P image.imgCode: Select all
touch /etc/cloud/cloud-init.disabledCode: Select all
echo "mem" > /sys/power/stateCode: Select all
qemu-img convert VmImage.qcow2 -O raw VmImage.rawCode: Select all
apt-get install qemu-utilsCode: Select all
systemctl rebootCode: Select all
rpm -qa "httpd"
yum list installed "httpd*"
yum remove "httpd*" -y
rm -rf /var/www
rm -rf /etc/httpd
rm -rf /usr/lib64/httpd
userdel -r apache
Code: Select all
grep "apache" /etc/passwd
systemctl status httpd