Results 1 to 6 of 6
  1. #1
    How can I add 127.0.0.1  localhost to my etc/hosts file/

    Member Since
    Oct 14, 2007
    Posts
    273
    How can I add 127.0.0.1 localhost to my etc/hosts file/
    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?

  2. #2
    How can I add 127.0.0.1  localhost to my etc/hosts file/
    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

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

    Member Since
    Oct 14, 2007
    Posts
    273
    I tried the first part of what he said and i got this message: "-bash: $: command not found"

  4. #4
    How can I add 127.0.0.1  localhost to my etc/hosts file/
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

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

    Member Since
    Oct 14, 2007
    Posts
    273
    I get this: /private/etc/hosts (END)

  6. #6
    How can I add 127.0.0.1  localhost to my etc/hosts file/
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Localhost file & owner permissions
    By alice24springs in forum OS X - Operating System
    Replies: 8
    Last Post: 07-06-2011, 02:15 AM
  2. localhost forbidden, localhost/~username allowed
    By Jarvis in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-18-2010, 08:04 PM
  3. hosts file
    By afcbob in forum OS X - Operating System
    Replies: 2
    Last Post: 11-29-2009, 12:21 PM
  4. Hosts File
    By traveler09 in forum OS X - Operating System
    Replies: 3
    Last Post: 07-29-2009, 07:59 AM
  5. Need to add entry in hosts file
    By marskarthik in forum Apple Desktops
    Replies: 2
    Last Post: 02-21-2006, 03:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •