In today's world, you shouldn't install CentOS 7.9 for a fresh server installation -- it is completely EOL in a couple of months, so instead you should install AlmaLinux 8, which has a clear path forward to EL9 and an ELevate script for upgrading, as well as an EOL that is 5 years away.
(Which makes me wonder WHY there are still forums here for CentOS 6 Problems and CentOS 5 Problems...)