我正在使用 certbot 为第三方 Web 应用程序生成 ssl 证书。因为我无法进入源代码或文件夹结构,所以我使用了 DNS 验证。更复杂的是,我的 DNS 提供商没有明确说明更改何时应用和传播。我必须开始这个过程,获取值,将它们发布到 DNS,等待很长时间,然后按 ENTER 完成验证。如果我等待的时间不够长,或者与服务器的终端会话终止,我必须重新开始——这会生成要放入 DNS 的新值。
我想查询我的 DNS 名称服务器以查看我的_acme_challenge
值是否以及何时传播。Let's Encrypt 有一种方法可以检查这个值,但我似乎无法弄清楚这个。我找到的所有在线论坛都用于查询用于 SPF 的默认 TXT 记录。
certbot 验证过程的输出
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name
_acme-challenge.app.mydomain.com with …
Run Code Online (Sandbox Code Playgroud) 升级到 Ubuntu 20.04 LTS 后,我的 WordPress 站点停留在维护模式。mySQL 试图从这些相同的 10 行开始,每隔几秒钟在/var/log/mysql/error.log
文件中重复一次。至少对我来说,快速搜索该术语unknown variable 'query_cache_limit=1M'
只会产生告诉如何实现此参数的页面。我如何让它再次工作?
2020-11-12T16:12:25.733349Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2020-11-12T16:12:25.735469Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.22-0ubuntu0.20.04.2) starting as process 20068
2020-11-12T16:12:25.746199Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-11-12T16:12:26.131087Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-11-12T16:12:26.307241Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' …
Run Code Online (Sandbox Code Playgroud) 今晚我将我的 VPS 从 Ubuntu 16.04 LTS 升级到 Ubuntu 18.04 LTS。一切都按预期进行,对 php aisle 5.6 进行了一些清理,并在 php aisle 7.4 上进行了一些库存货架。在我更改所有配置和模组后,Apache 毫无怨言地重新启动了;我以为我可以走了。但我的 4 个网站中有 3 个无法加载;没有干净的 404 页面,只有这个错误配置消息。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Run Code Online (Sandbox Code Playgroud)
审查后/var/log/apache2/error.log
,我发现了这一点:
[Wed May 06 03:55:16.190469 2020] [core:alert] [pid 5657] [client 10.10.10.10:56897]
/var/www/abc/example.com/.htaccess: No comments are allowed here, referer: https://example.com/
Run Code Online (Sandbox Code Playgroud)
在尝试了几种不同的方法之后,似乎开始行的注释不是问题,而是结束文件正常行的注释。删除这些评论或将这些#main office
评论移动到自己的行中将使所有内容恢复在线。该# Allow from this IP address
行仍在我的 .htaccess 文件中,但不会给我带来任何悲伤。
<Files wp-login.php>
order …
Run Code Online (Sandbox Code Playgroud) apache-2.4 ×1
certbot ×1
http ×1
mysql ×1
php7 ×1
txt-record ×1
ubuntu-18.04 ×1
ubuntu-20.04 ×1