Linux error 111 connection refused

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.

Staff Asked on August 11, 2017 in Linux.
Add Comment
1 Solution(s)

Solution 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.

 

Staff Answered on December 3, 2017.
Add Comment

Your Solution

By posting your solution, you agree to the privacy policy and terms of service.