Firstly, and easily, you can check the current status of SELinux with sestatus:
$ sestatusSELinux status: enabledSELinuxfs mount: /sys/fs/selinuxSELinux root directory: /etc/selinuxLoaded policy name: targetedCurrent mode: enforcingMode from config file: enforcingPolicy MLS status: enabledPolicy deny_unknown status: allowedMax kernel policy version: 31
Here, we see that it's enabled, and the mode that it's operating in is enforcing, meaning that violations of the policy are denied.
To disable SElinux on the fly (temporarily,) there's a relatively easy command:
$ sudo setenforce Permissive
But this will change again at boot-time.
For now, let's leave it enabled:
$ sudo setenforce Enforcing
Next, we're going to change the port ...