Last active
November 16, 2019 10:20
-
-
Save skarllot/697575f4bc4c307d9640 to your computer and use it in GitHub Desktop.
CentOS 7 minimal installation cleanup (remove unwanted services)
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
| # Remove Postfix | |
| systemctl stop postfix | |
| systemctl disable postfix | |
| yum remove postfix | |
| # Remove Avahi | |
| systemctl stop avahi-daemon.socket avahi-daemon.service | |
| systemctl disable avahi-daemon.socket avahi-daemon.service | |
| yum remove avahi-autoipd avahi-libs avahi | |
| # Set hostname | |
| hostnamectl set-hostname FQDN_system_name | |
| hostnamectl status | |
| # Check open ports | |
| netstat -tulpn | |
| netstat -tulp | |
| # Ref: https://rbgeek.wordpress.com/2014/07/15/initial-settings-after-installing-the-centos-7/ |
Hello,
Getting an error message while running this command,
# systemctl stop avahi-daemon.socket avahi-daemon.service
Failed to stop avahi-daemon.socket: Unit avahi-daemon.socket not loaded.
Failed to stop avahi-daemon.service: Unit avahi-daemon.service not loaded.
how will fix this issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this line "yum remove avahi-autoipd avahi-libs avahi" made the VM reboot and uninstalled the GUI...wth