Skip to content

Instantly share code, notes, and snippets.


Leonardo G G Avellar L30Bola

  • Wildlife Studios
  • São Paulo - Brasil
  • Twitter @L30Bola
View GitHub Profile
L30Bola /
Created Sep 23, 2020 — forked from holmberd/
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
View gdb-output.txt
/ # gdb httpd
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
View expressoes.l
int token( int );
DIGITO [0-9]
LETRA [A-Za-z_]
STRING \"(\\.|[^"\\]|\"\")*\"
View certbot-renew_timer&


Description=Performs periodically, at arbitrary times, verification for renewal of Let's Encrypt certificates

OnCalendar=*-*-* 12,00:00:00

Install Ruby - CentOS 7

  1. mkdir /path/to/ruby # example: /backup/ruby
  2. yum update -y # To update system packages
  3. timedatectl set-timezone America/Sao_Paulo
  4. Download Ruby src:
  5. tar zxf ruby-${rubyVersion}.tar.gz # extract ruby tar
  6. yum install -y make gcc gcc-c++ openssl-devel bison gdbm-devel ruby # isntall dependencies
  7. cd /path/to/ruby-${rubyVersion} # Enter ruby installation directory