Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Leonardo G G Avellar L30Bola

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

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 <http://gnu.org/licenses/gpl.html>
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_]
INT {DIGITO}+
DOUBLE {DIGITO}+("."{DIGITO}+)?
ID {LETRA}({LETRA}|{DIGITO})*
STRING \"(\\.|[^"\\]|\"\")*\"
View certbot-renew_timer&service.md

/etc/systemd/system/certbot-renew.timer

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

[Timer]
OnCalendar=*-*-* 12,00:00:00
Unit=certbot-renew.service
AccuracySec=1h
RandomizedDelaySec=6h
View Installing-Redmine3.4.md

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: https://www.ruby-lang.org/en/downloads/
  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