Home > Linux Installation

Linux error 111 connection refused

a nice image
By sheila_serrano and genesismarasiganLast updated 13 days ago.

What is Linux error 111 connection refused?

"Linux error 111 connection refused" is an error that usually occurs when the host file does not contain the correct address or name for the server and can occur if the loopback address is not present.

How can you fix Linux error 111 connection refused?

Some of the solutions to this error include editing the host file.

Please see our in-depth walk-through solutions below.

1. Edit etc/host File

"Linux error 111 connection refused" may be caused by wrong hostname and address in the /etc/host file. Please, edit /etc/hosts to fix the problem. To open /etc/host file please see below.

  1. Run a terminal window.
  2. Type in "sudo nano /etc/hosts."
  3. Enter your domain user password.
  4. Edit the /etc/host file.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= "input your host name" )(PORT=1521)))127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.1.1 "input your host name" oracle
  5. Press Control-x to save.
  6. A confirmation is required, answer Y to confirm.

Related Topics

  • linux
  • linux-installation