我有一台Ubuntu 16.04服务器,我将Caddy安装为HTTP服务器。我还有一些指向该服务器的子域。 我将其中一个子域指向错误的IP,现在我已经:
caddy.service: Service hold-off time over, scheduling restart.
我尝试重新启动服务,但得到的结果相同。还修改了/lib/systemd/system/caddy.service
文件,现在服务块看起来像:
[Service]
Restart=on-failure
StartLimitInterval=86400
StartLimitBurst=500000
RestartSec=3
我重新启动了守护进程,但结果相同。现在我明白了:
Activating privacy features... 2018/04/17 23:32:24 [INFO][sub.domain.com] acme: Obtaining bundled SAN certificate
Apr 17 23:32:24 ubuntu-apps caddy[22434]: 2018/04/17 23:32:24 [INFO][] Certificate written to disk: /etc/ssl/caddy/acme/acme-v02.api.letsencrypt.org/sites/.crt
Apr 17 23:32:24 ubuntu-apps caddy[22434]: 2018/04/17 23:32:24 open /etc/ssl/caddy/acme/acme-v02.api.letsencrypt.org/sites/sub.domain.com/sub.domain.com.crt: no such file or directory
Apr 17 23:32:24 ubuntu-apps systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
Apr 17 23:32:24 ubuntu-apps systemd[1]: caddy.service: Unit entered failed state.
Apr 17 23:32:24 ubuntu-apps systemd[1]: caddy.service: Failed with result 'exit-code'.
Apr 17 23:32:25 ubuntu-apps systemd[1]: caddy.service: Service hold-off time over, scheduling restart.
可能是让我们加密那个拒绝我的人?我还能做些什么才能强行重启?