Is the mongod process running? It looks like that it’s not since you’re getting a connection refused.
mongod
The FCV in the error message shows that it’s 4.4. Are you trying to upgrade from 4.4, or does your 5.0 database still have the FCV set to 4.4?