使用阿里云服务器Ubuntu搭建代理服务器报错unable resolve host

解决方法:

一、切换登录用户
sudo su root
二、修改 /etc/hosts 文件
sudo vim /etc/hosts
三、在文件第二行添加内容
127.0.0.1 localhost 报错host名字
四、保存并退出
:wq

问题解决,可以正常使用命令开启搭建的服务器

猜你喜欢

转载自blog.csdn.net/qq_42349944/article/details/102681240