mysql - Cloudflare 错误 522

标签 mysql linux ssl debian cloudflare

您好,我在使用 Cloudflare 和 SSL 时总是出现错误 522 我使用 2 个 url,第一个是通过带有完整 ssl https://example.com 的 Cloudflare,第二个是使用我的 ip 而没有 Cloudflare http://XXX.XXX。如果我使用 AB 命令(或使用简单的 ajax 请求)开始基准测试 mysql,Cloudflare 的网站立即关闭并出现错误 522,但我的 IP 的网站永远不会关闭并继续更快地工作

我在 Cloudflare 中有一个免费计划,在我的带有 openssl 的服务器中有一个自动签名的 SSL 证书

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/s1.key -out /etc/apache2/ssl/s1.crt

我更改了 my.cnf 以将 max_user_connections 限制为 20 但没有工作我在 apache 和 syslog 中没有错误

我的服务器是 OVH 中的 debian 7 3 核 4gb

top - 07:26:58 up 15:25,  2 users,  load average: 2.23, 2.28, 2.18
Tasks:  57 total,   2 running,  55 sleeping,   0 stopped,   0 zombie
%Cpu(s):  8.1 us,  1.2 sy,  0.0 ni, 88.7 id,  2.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   4194304 total,   354532 used,  3839772 free,        0 buffers
KiB Swap:   131072 total,        0 used,   131072 free,   159668 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
11715 mysql     20   0  585m 100m 7824 S  28.1  2.5 117:17.15 mysqld
14469 www-data  20   0  222m  12m 4312 R   2.9  0.3   0:20.86 apache2
14567 www-data  20   0  222m  11m 3604 S   2.0  0.3   0:12.89 apache2
14579 www-data  20   0  221m  11m 3612 S   2.0  0.3   0:07.69 apache2
 2599 root      20   0 24364 2208 1296 S   1.0  0.1  10:53.41 htop
 5317 root      20   0 24292 2184 1296 S   0.7  0.1  10:41.42 htop
14577 www-data  20   0  221m  10m 3400 S   0.7  0.3   0:08.94 apache2
    1 root      20   0 10604  796  664 S   0.0  0.0   0:15.10 init
    2 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kthreadd/46179
    3 root      20   0     0    0    0 S   0.0  0.0   0:00.00 khelper/46179
    4 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/0
    5 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/1
    6 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/2
    7 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/3
    8 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/4
    9 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/5
   10 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/6
   11 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rpciod/46179/7
   12 root      20   0     0    0    0 S   0.0  0.0   0:00.00 nfsiod/46179
 1533 root      20   0 30764  488  244 S   0.0  0.0   0:00.00 syslog-ng
 1534 root      20   0 88480 3572 2480 S   0.0  0.1   0:02.10 syslog-ng
 1658 messageb  20   0 29760  556  296 S   0.0  0.0   0:00.00 dbus-daemon
 1676 bind      20   0  202m  22m 2324 S   0.0  0.5   0:02.13 named
 1682 root      20   0 49888 1236  628 S   0.0  0.0   0:00.37 sshd
 1717 root      20   0 72552 2132  524 S   0.0  0.1   0:19.69 sendmail-mta
 2295 root      20   0 20844 1024  776 S   0.0  0.0   0:02.76 cron
 2398 proftpd   20   0 99.7m 1944  500 S   0.0  0.0   0:09.15 proftpd
 2422 root      20   0 52324 1672 1152 S   0.0  0.0   0:00.02 login
 2423 root      20   0 14532  836  676 S   0.0  0.0   0:00.00 getty
 2424 root      20   0 14532  832  676 S   0.0  0.0   0:00.00 getty
 2425 root      20   0 14532  828  676 S   0.0  0.0   0:00.00 getty
 2426 root      20   0 14532  832  676 S   0.0  0.0   0:00.00 getty
 2427 root      20   0 14532  832  676 S   0.0  0.0   0:00.00 getty
 2506 root      20   0 24368 1964  776 S   0.0  0.0   0:46.24 screen
 2507 root      20   0 19944 2272 1672 S   0.0  0.1   0:02.25 bash
 2508 root      20   0 19916 2176 1604 S   0.0  0.1   0:00.02 bash
 5316 root      20   0 19916 2176 1604 S   0.0  0.1   0:00.00 bash
 9522 root      20   0  220m  10m 4436 S   0.0  0.3   0:36.96 apache2
10166 root      20   0 19924 2216 1636 S   0.0  0.1   0:00.00 bash

最佳答案

522 错误通常表示某些东西阻止了来自您的服务器或托管服务提供商的 IP 的请求。

Additional troubleshooting tips for a 522 error and CloudFlare .

关于mysql - Cloudflare 错误 522,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30866316/

相关文章:

c++ - C++ 程序的单个实例,使用 boost::interprocess

python - 在 Python 2.x 中快速发出多个 SSL 请求

sockets - 通过套接字连接到 Gmail SMTP 返回每个服务器的不同响应

mysql - 从 UDF 返回一个值。 (MySQL)

linux - 如何知道 sockatpair 的 SOCK_DGRAM 对等套接字何时关闭?

linux - 这里的 Bash 脚本文件 FTP

ssl - 如果客户端在服务器上强制执行 TLS 1.2,为什么 Stripe 允许它们只支持 TLS 1.0?

mysql - max_allowed_pa​​cket 正在重置为 1024,因为某些未知应用程序

mysql from_timestamp(0) 与我当前时间不匹配

php - 嵌套查询sql,无法执行