It is but the /etc/hosts file might not have a mapping of 'localhost' to '127.0.0.1'.
Check if the /etc/hosts file has a line something like- *127.0.0.1 localhost * Navneet
It is but the /etc/hosts file might not have a mapping of 'localhost' to '127.0.0.1'.
Check if the /etc/hosts file has a line something like- *127.0.0.1 localhost * Navneet