国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

出現(xiàn)net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

sanye

問題描述

webman版本:1.6
服務(wù)器:centos7.9
php:8.0
使用webman開發(fā)后臺接口,加了ssl,但沒有強制要求使用https,用nginx按照文檔加了代理
前端vue3,本地開發(fā)的時候接口總是出現(xiàn)net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)的錯誤

截圖
打包部署到線上,就不會出現(xiàn)這些錯誤
也正常加了中間件

516 2 0
2個回答

nitron

http://www.wtbis.cn/q/10886

最下面那個回答,不知道是否有用

  • sanye 2025-02-21

    這個論壇里面能翻出來的方法已全都測試過,包括百度和必應(yīng)搜出來的結(jié)果,基本上都測試過了,還是沒有找到結(jié)果

walkor 打賞

執(zhí)行 ulimit -n 貼下結(jié)果

  • sanye 2025-02-21

    [root@ecs-e968-0426361 eleserver]# ulimit -n
    102400
    [root@ecs-e968-0426361 eleserver]#

  • walkor 2025-02-21

    看下對應(yīng)的nginx錯誤日志

  • sanye 2025-02-21

    2025/02/21 02:00:58 [notice] 24832#0: signal process started
    2025/02/21 02:14:08 [notice] 25872#0: signal process started
    2025/02/21 02:14:12 [notice] 25896#0: signal process started
    2025/02/21 02:21:50 [notice] 26590#0: signal process started
    2025/02/21 02:21:51 [notice] 26611#0: signal process started
    2025/02/21 02:21:51 [notice] 26631#0: signal process started
    2025/02/21 02:21:51 [notice] 26650#0: signal process started
    2025/02/21 02:21:52 [notice] 26669#0: signal process started
    2025/02/21 02:22:02 [notice] 26699#0: signal process started
    2025/02/21 02:22:12 [notice] 26726#0: signal process started
    2025/02/21 02:22:14 [notice] 26746#0: signal process started
    2025/02/21 02:27:30 [notice] 27255#0: signal process started
    2025/02/21 02:27:31 [notice] 27279#0: signal process started
    2025/02/21 02:27:31 [notice] 27298#0: signal process started
    2025/02/21 02:27:32 [notice] 27318#0: signal process started
    2025/02/21 02:27:32 [notice] 27337#0: signal process started
    2025/02/21 02:27:32 [notice] 27356#0: signal process started
    2025/02/21 02:27:56 [notice] 27419#0: signal process started
    2025/02/21 02:31:57 [emerg] 27846#0: "proxy_buffer_size" directive is duplicate in /www/server/nginx/conf/nginx.conf:39
    2025/02/21 02:32:08 [emerg] 27881#0: "proxy_buffers" directive is duplicate in /www/server/nginx/conf/nginx.conf:39
    2025/02/21 02:32:10 [emerg] 27897#0: "proxy_busy_buffers_size" directive is duplicate in /www/server/nginx/conf/nginx.conf:39
    2025/02/21 02:32:13 [notice] 27912#0: signal process started
    2025/02/21 02:46:03 [notice] 30734#0: signal process started
    2025/02/21 02:46:06 [notice] 30755#0: signal process started
    2025/02/21 02:46:06 [notice] 30774#0: signal process started
    2025/02/21 02:46:33 [emerg] 30817#0: invalid parameter "https2" in /www/server/panel/vhost/nginx/eleapi.fediot.net.conf:8
    2025/02/21 02:46:38 [notice] 30835#0: signal process started
    2025/02/21 02:46:38 [notice] 30854#0: signal process started
    2025/02/21 02:47:10 [notice] 30908#0: signal process started
    2025/02/21 02:51:07 [notice] 31323#0: signal process started
    2025/02/21 02:52:48 [notice] 31509#0: signal process started
    2025/02/21 02:52:51 [notice] 31532#0: signal process started
    2025/02/21 02:52:51 [notice] 31550#0: signal process started
    2025/02/21 03:14:05 [notice] 923#0: signal process started

  • walkor 2025-02-21

    大概率是nginx沒啟用keepalive導(dǎo)致的。
    http://www.wtbis.cn/doc/webman/others/nginx-proxy.html
    這里有nginx配置教程,你參考下,主要是那個keepalive要有

  • sanye 2025-02-21

    配置的時候完全按照您的官網(wǎng)文檔來設(shè)置的,keepalive 10240 這個設(shè)置項是有的,設(shè)置在upstream xxx里面

  • nitron 2025-02-21

    nginx好像沒用https2這個參數(shù)

  • sanye 2025-02-21

    那是我在網(wǎng)上搜的方案,說去掉http2,我就試了一下,發(fā)現(xiàn)不行,我就加回來,手一抖多打了一個s,發(fā)現(xiàn)保存不了我就改回去了,nginx記錄下了這個錯誤。

  • nitron 2025-02-21

    查看一下nginx的error日志,看是不是臨時目錄權(quán)限問題

  • sanye 2025-02-21

    權(quán)限直接在項目根目錄給了root 777

  • nitron 2025-02-21

    是nginx的臨時目錄權(quán)限,不是項目的權(quán)限,開nginx的錯誤日志然后重啟nginx,
    一般你這種吊詭的問題很大原因是因為nginx的指定用戶跟命令行運行的用戶不一致導(dǎo)致臨時目錄無法訪問而出錯

    先開nginx的error日志吧,出錯了里面應(yīng)該有詳細(xì)的報錯信息

  • nitron 2025-02-21

    如果錯誤日志里有Permission Denied的報錯,大概率就是nginx的臨時目錄權(quán)限

??