Skip to content

Instantly share code, notes, and snippets.

@skarllot
Last active November 16, 2019 10:20
Show Gist options
  • Select an option

  • Save skarllot/697575f4bc4c307d9640 to your computer and use it in GitHub Desktop.

Select an option

Save skarllot/697575f4bc4c307d9640 to your computer and use it in GitHub Desktop.
CentOS 7 minimal installation cleanup (remove unwanted services)
# 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/
@kishoredr

Copy link
Copy Markdown

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