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.
- Run a terminal window.
- Type in "sudo nano /etc/hosts."
- Enter your domain user password.
- 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
- Press Control-x to save.
- A confirmation is required, answer Y to confirm.