LMLPHP后院

nginx client intended to send too large body技术

maybe yes 发表于 2021-05-09 00:50

nginx 出现了报错日志,咋一看,就是 POST 了大数据,只能修改配置了,怎么设置,请看:

报错类似:

2021/05/08 12:16:13 [error] 11798#11798: *28202901 client intended to send too large body: 1268248 bytes, client: , server: , request: "POST HTTP/1.1", host: ""

解决办法:

http {
  ...
  client_max_body_size 5m;
}

更换服务器后,出现了久违的错误,因为我配置的是域名。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for [lmlphp.com]:has changed,
and the key for the corresponding IP address [192.46.218.18]:
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:t8bG23KQlimQ5MvG5rea0eKq1Jps8W8lOpaoi0AVyro.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
  remove with:
  ssh-keygen -f "/root/.ssh/known_hosts" -R "[lmlphp.com]:"
ECDSA host key for [lmlphp.com]:has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]

突发,写了一段测试电脑速度的代码技术

maybe yes 发表于 2021-05-08 17:03

突发奇想,想试试电脑循环一个 INT MAX 需要多久,发现可以测量下电脑的速度,一举两得!

为什么会这么想呢,因为我总是担心 MySQL 自增超出了怎么办,如何自动的避免这些带来的报错!

测试下 INT_MAX 循环下来耗时多久吧,我比较担心自动增长是不是有问题的设计,如果达到了最大值怎么办?这样程序崩溃了啊,对于频繁增删的表来讲,达到这个最大值不需要多久。

test.php 文件内容:

for ($i=0; $i<2147483647; $i++) {
        if ($i==2147483646) {                                                                                                                                                          
                var_dump('ok');
        }
}

普通人终于比首富更厉害一些了院内

maybe yes 发表于 2021-05-05 18:50

首富都离婚了,离婚和财富是没有太大关系了!盖茨离了,姐夫离了!

盖茨离婚事件,被媒体争锋推送。

有钱人一定很幸福吧,至少烦恼会少很多,但是面对感情,也依然是有烦恼啊!

为什么父母会变成扶不起的阿斗院内

maybe yes 发表于 2021-05-05 08:23

这是一个国内的普遍性现象,很多人越来越疏远父母,但都是无奈啊。

很多时候,谁不想爱父母啊!

可很多时候,父母有事不问子女,遇到问题不咨询子女,不信任子女。

这才让很多地推骗子下乡高价卖劣质商品。

很多时候,很残酷,你告诉父母,这个不好,这样不对,要怎么怎么样才是对的。但父母不信你啊,崽子是我生的,崽子还能有我聪明,这就是典型的父母思维。但是子女由于忙,由于各种事情和压力,怎么可能有骗子那么有耐心和嘴脸。

于是骗子随便做几个实验,在乡下召集一推人,卖东西的同时送一点劣质商品,很多老人都中招了,连忙叫好,都买了,这就是真实的中国,你若是告诉你的父母买到了假货,人家还要和你理论一番。

最近几年的高价劣质商品,净水器、亦或是空气净化器等。骗子净水器公司全国巡演,导致高价劣质(甚至完全是假的)净水器进入了寻常老百姓家里,那滤芯拿出来一看就是纸筒子啊!!!

Raspberry Pi 偶尔的网络问题公告

maybe yes 发表于 2021-05-01 04:36

树莓派大概每两个多月的样子就会出现一些问题,连不上网,这个偶尔发生的问题,不知道深层次的原因是什么,因为没法联网,该报警的都报警了!

https://andreas.scherbaum.la/blog/archives/1001-Reboot-the-Raspberry-Pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110.html

May  1 03:20:34 raspberrypi kernel: [1996808.530881] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:20:34 raspberrypi kernel: [1996808.530896] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:21:34 raspberrypi kernel: [1996868.434696] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
May  1 03:21:34 raspberrypi kernel: [1996868.435178] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
May  1 03:21:34 raspberrypi kernel: [1996868.435431] brcmfmac: dongle trap info: type 0x4 @ epc 0x0007a094
May  1 03:21:34 raspberrypi kernel: [1996868.435431]   cpsr 0x6000019f spsr 0x600001bf sp 0x0025f888
May  1 03:21:34 raspberrypi kernel: [1996868.435431]   lr   0x0007a093 pc   0x0007a094 offset 0x25f830
May  1 03:21:34 raspberrypi kernel: [1996868.435431]   r0   0x00000037 r1   0x00000005 r2 0x00000000 r3 0x00000001
May  1 03:21:34 raspberrypi kernel: [1996868.435431]   r4   0x002494d0 r5   0x00000000 r6 0x00249460 r7 0x00000004
May  1 03:21:34 raspberrypi kernel: [1996868.435454] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:21:34 raspberrypi kernel: [1996868.435470] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:22:34 raspberrypi kernel: [1996928.339272] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:22:34 raspberrypi kernel: [1996928.339296] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:23:34 raspberrypi kernel: [1996988.499861] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:23:34 raspberrypi kernel: [1996988.499882] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:23:37 raspberrypi kernel: [1996991.061905] CIFS VFS: \\192.168.31.103 has not responded in 180 seconds. Reconnecting...
May  1 03:24:34 raspberrypi kernel: [1997048.404442] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:24:34 raspberrypi kernel: [1997048.404465] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:25:34 raspberrypi kernel: [1997108.309023] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:25:34 raspberrypi kernel: [1997108.309044] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:26:34 raspberrypi kernel: [1997168.469616] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:26:34 raspberrypi kernel: [1997168.469636] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:27:34 raspberrypi kernel: [1997228.374194] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:27:34 raspberrypi kernel: [1997228.374214] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:28:34 raspberrypi kernel: [1997288.534795] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:28:34 raspberrypi kernel: [1997288.534816] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:29:34 raspberrypi kernel: [1997348.439387] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:29:34 raspberrypi kernel: [1997348.439408] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:30:01 raspberrypi CRON[24311]: (pi) CMD (php /script.php)
May  1 03:30:34 raspberrypi kernel: [1997408.343978] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:30:34 raspberrypi kernel: [1997408.343999] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:30:52 raspberrypi CRON[24307]: (CRON) info (No MTA installed, discarding output)
May  1 03:31:34 raspberrypi kernel: [1997468.504589] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:31:34 raspberrypi kernel: [1997468.504609] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:32:34 raspberrypi kernel: [1997528.409178] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:32:34 raspberrypi kernel: [1997528.409199] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:33:34 raspberrypi kernel: [1997588.313804] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:33:34 raspberrypi kernel: [1997588.313826] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
May  1 03:34:34 raspberrypi kernel: [1997648.474380] ieee80211 phy0: brcmf_run_escan: error (-110)
May  1 03:34:34 raspberrypi kernel: [1997648.474401] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
2024-04-18 12:34:37 1713414877 0.020272