服務器

openvpn

7. docker - xware

最後更新: 2017-06-26

介紹

 

迅雷遠程下載 xware

通過網站 http://yuancheng.xunlei.com/ 就能遠程提交下載任務

OS: Ubuntu 14.10

 

nginx - http2

最後更新: 2018-11-19

介紹

 * use of binary message framing
 * allows prioritization of requests
 * allows interleaving of request and response messages on the same connection
 * uses an efficient coding for HTTP header fields
 * interaction mode whereby a server can push responses to a client

The basic protocol unit in HTTP/2 is a frame

  • HEADERS frames
  • DATA frames
  • SETTINGS frames
  • WINDOW_UPDATE frames
  • PUSH_PROMISE frames

目錄

  • tengine - HTTP2
  • Build nginx with http2 (Centos 7)
  • Static compile
  • Server Push

php-fpm 與 nginx

最後更新: 2018-01-22

介紹

php5-fpm - PHP FastCGI Process Manager

 * process spawning

systemd-+...
        |-php-fpm-+-php-fpm
        |         |-php-fpm
        |         |-php-fpm
        |         |-php-fpm
        |         |-php-fpm
        |         `-php-fpm

Pool

不同的 Pool 是不同設定的 php process, 比如 php version, upload_max_filesize

Pool 是用不同的 port 去區分 (Default first pool: 9000/TCP)

Daemon

runs as a daemon and receives Fast/CGI requests.

Browser --> Nginx --> php-fpm --> php

* 當 Nginx 連不到 php-fpm proccess 時, 那 client 會收到 "502 Bad Gateway"

Tools

/etc/init.d/php5-fpm

/usr/sbin/php5-fpm

目錄

  • php5-fpm
  • ...
  • .user.ini

 

RSS feed