The first thing that you have to do is destroy the previous mongod instance and start the new one. To remove the previous mongod instance, first search for a file of tasks running on your machine by typing:
sudo lsof -iTCP -sTCP:LISTEN -n -P
Search for mongod COMMAND and its PID and type the following command:
sudo kill <mongo_command_pid>
Now just start your mongod instance by typing the following:
mongod