Getting 'Connection Refused' Error when loading IP

Hi everyone,

So recently I followed this tutorial: Set up a CDN for Plex with CloudFlare & NGINX and everything was working fine until creating the SSL for the domain. I was seeing errors across the board and googled my problem. I mistakenly entered these series of commands:

sudo apt-get purge python-pkg-resources
sudo apt-get -f install
sudo rm -Rf /usr/local/bin/pip
sudo apt-get install python-pip
sudo pip install -U pip

Now everytime I attempt to go to my seedbox’s IP, I get a connection refused. Does anyone know how to fix this without formatting the OS and starting over?

Thanks!