From aa439df1f0cdbff2f98b4f944d90abef9f775dd3 Mon Sep 17 00:00:00 2001 From: next-autumn <73510229+next-autumn@users.noreply.github.com> Date: Fri, 18 Jun 2021 20:45:07 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20Caddy=E5=90=AF=E5=8A=A8=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Caddy启动失败.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Caddy启动失败.md b/Caddy启动失败.md index d00fad7..13cfdde 100644 --- a/Caddy启动失败.md +++ b/Caddy启动失败.md @@ -1,6 +1,6 @@ -systemctl status caddy -问题:错误信息包含 "listen tcp: lookup localhost on 8.8.8.8:53: no such host" + +问题:用systemctl status caddy命令,如果错误信息包含 "listen tcp: lookup localhost on 8.8.8.8:53: no such host" 系统无法解析localhost 解决方案:在/etc/hosts 末尾添加 127.0.0.1 QlikSenseLinux localhost