Tag:Maximum

  • How to modify the maximum number of Apache 2 connections

    Time:2022-6-12

    Modify httpd Conf file <IfModule prefork.c> StartServers       8 MinSpareServers    5 MaxSpareServers   20 MaxClients       150 MaxRequestsPerChild  1000 </IfModule> modify MaxClients       150by ServerLimit        2000 MaxClients         2000  ServerLimit instructions explain serviceMaximum number of processes allowed to be configured by the grammar ServerLimit number Default See instructions below Scope server config state MPM modular prefork, […]

  • Discussion on Ruby string and array maximization

    Time:2022-1-8

    Max method ? 1 b=[1,3,55,777,2,4,6,8,0] For numerical data, Max will get the maximum value of the array and min will get the minimum value of the array ? 1 2 b.max => 777 b.min => 0 Comparing the size of string arrays has no practical significance,The example given in ruby is ? 1 2 3 […]

  • Linux shell to achieve a multidimensional array of the maximum and minimum

    Time:2021-6-2

    Colleagues sent a shell problem, is to find a multidimensional array of the maximum and minimumSuch as file 99file:   33      55      23      56      99 234     234     545     6546    34 11      43      534     33      75 43      34      76      756     33 343     890     77      667     55 One of my implementations: #! /bin/bash echo “the file is […]

  • Traversing through Erlang to fetch the maximum code for a location

    Time:2019-3-9

    Example: There is a list of A= [“abc”, “bds”, 3], [“ssdss”, “dddx”, 2], [“sfa”, “ww”, 4], [“wad”, “ffx”, 0]. The requirement is to take the maximum out of the list for the last bit. The basic idea of dealing with it is to intercept, traverse and maximize. Here is a listA, each list has N […]