Generally speaking the less listening ports on IPs the better. More ports available on a server means more doors (even locked).This is important for critical servers that are exposed to external users. For servers sitting all in internal network this won't matter much but again it's something you need to check with your security team. Web shells and other tools that an attacker usually use leverage listening ports for gaining access. Please note, ports are not the only concern, you can have firewall rules to control these traffic direction, protocols etc to make them more secure.