後台匯出大量資料超時報 nginx404錯誤

2022-02-09 06:22:54 字數 526 閱讀 7221

使用nginx伺服器如果遇到timeou情況時可以如下設定引數,使用fastcgi:

fastcgi_connect_timeout 75;  鏈結

fastcgi_read_timeout 600;   讀取

fastcgi_send_timeout 600;   發請求

這兩個選項.

fastcgi_read_timeout是指fastcgi程序向nginx程序傳送response的整個過程的超時時間

fastcgi_send_timeout是指nginx程序向fastcgi程序傳送request的整個過程的超時時間

然後加大

keepalive_timeout  600;連線超時時間,1分鐘,具體時間可以根據請求(如後台匯入等場景)

EasyPoi 匯出大量資料

1 引入jia包 在pom.xml中引入一下jia包 cn.afterturn easypoi base 4.1.0 cn.afterturn easypoi web 4.1.0 cn.afterturn easypoi annotation 4.1.0 2 如下 一 controller請求 匯出...

Mysql匯出大量資料

outfile 匯出檔案 select name from t1 into outfile tmp test.txt infile 匯入檔案 匯入到表t1中的name列 load data infile tmp test.txt into table t1 name 匯入和匯出的時候可以關閉索引 正...

php excel匯出大量資料方法

參考 這個需要安裝擴充套件 set time limit 1 ini set memory limit 512m columns 文章id 文章標題 filename orderlog csv header content description file transfer header conte...