New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How can I add 127.0.0.1 localhost to my etc/hosts file/


Post Reply New Thread Subscribe

 
Thread Tools
oxband

 
Member Since: Oct 14, 2007
Posts: 219
oxband is on a distinguished road

oxband is offline
So, for months and months, my computer, every 12 seconds or so in the console, shows this: rpc.lockd: can't contact statd, 100024 RPC: Unknown host

I want to resolve this. It cant be good.

Someone on the Apple Disccussion proposed this as a solution: "sounds kinda like loop back is missing from your etc/hosts file? Add 127.0.0.1 localhost if its not at the head of the file and see if it fixes the problem."

I want to try that but I have no idea how to. Can someone explain this to me?
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,942
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
You have to do that in terminal

How to edit the hosts file in Mac OS X 10.8 – Mountain Lion | Grapii

Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system
QUOTE Thanks
oxband

 
Member Since: Oct 14, 2007
Posts: 219
oxband is on a distinguished road

oxband is offline
I tried the first part of what he said and i got this message: "-bash: $: command not found"
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Do this instead:
Code:
less /private/etc/hosts
Copy here what gets shown on the screen. When you're done push q to close less.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
oxband

 
Member Since: Oct 14, 2007
Posts: 219
oxband is on a distinguished road

oxband is offline
I get this: /private/etc/hosts (END)
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
In that case, it is quite clear that indeed, you don't have the loopback. Do the following:

1. Type the following and press enter:
Code:
sudo nano /private/etc/hosts
2. Enter your password (you won't see it but it is indeed being registered).
3. Paste the following:
Code:
127.0.0.1       localhost
4. Press Control + O, press enter to save it and then press Control + X to quit

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Disappearing Cursor Problem got worse | symlink to Macintosh HD in Volumes »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Finder won't start laurag OS X - Operating System 5 04-13-2012 05:46 PM
new macbook pro system log normal? micho.mad OS X - Operating System 3 04-24-2009 03:13 PM
Add file types to Spotlight jakenoble Switcher Hangout 1 09-15-2007 05:30 PM
iTunes Tips And Tricks RJgamer iPod Hardware and Accessories 2 07-12-2007 11:59 AM
Need to add entry in hosts file marskarthik Apple Desktops 2 02-21-2006 03:25 PM

All times are GMT -4. The time now is 11:22 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?