From 6b84921f59c7c49476be6ead8beebe40c424b881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 23 Apr 2023 08:40:05 +0800 Subject: [PATCH] fix ulimit --- app/controllers/admin/plow_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/plow_controller.rb b/app/controllers/admin/plow_controller.rb index 46134b0..420240c 100644 --- a/app/controllers/admin/plow_controller.rb +++ b/app/controllers/admin/plow_controller.rb @@ -36,9 +36,9 @@ class Admin::PlowController < OrbitAdminController scheme = uri.scheme Thread.new do if !ip.blank? - `ulimit -n100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}` + `ulimit -n 100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}` else - `ulimit -n100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}` + `ulimit -n 100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}` end end max_wait = 10