“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.
Some of the solutions to this error include editing the host file.
Please see our in-depth walk-through solutions below.
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.
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