Add or modify SELinux port context mapping.
Section: SELinux and AppArmor Basics
Allow service on custom SELinux port
bash
bash
sudo semanage port -a -t http_port_t -p tcp 8080Explanation
Required when services move to nonstandard ports on SELinux systems.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing SELinux and AppArmor Basics