Skip to content

Files

Latest commit

410ed0c · Aug 12, 2020

History

History
13 lines (13 loc) · 1.22 KB

tuning_params_nginx.csv

File metadata and controls

13 lines (13 loc) · 1.22 KB
1
Categoryname (Parameter to be adjusted)desc (Parameter description)get (Command for querying parameter values.)set (Command for setting parameter values)needrestart(Whether require restart or not)type (discrete/continuous)options (For the discrete type, use";"to split different values.)dtype (For discrete, the parameter value type can only be int or string.)scope (Minimum value of the parameter)scope (Maximum Value of the parameter)step (Step of the parameter value)items (Enumerated values out of parameter values. Use ";" to split different values)select (whether to select the parameter)
2
nginxnginx.access_logEnabling or Disabling nginx access_logcat /etc/nginx/nginx.conf | grep "access_log" | awk -F ';' '{print $1}' | awk '{$1="";print}'| awk '$1=$1'sed -i "s#access_log.*#access_log $value;#g" /etc/nginx/nginx.conffalsediscrete/var/log/nginx/access.log main;offstringyes
3
nginx.error_logEnabling or Disabling nginx error_logcat /etc/nginx/nginx.conf | grep "error_log" | awk -F ';' '{print $1}' | awk '{$1="";print}' | awk '$1=$1'sed -i "s#error_log.*#error_log $value;#g" /etc/nginx/nginx.conffalsediscrete/var/log/nginx/access.log main;/dev/nullstringyes