- NGINX Cookbook
- Tim Butler
- 157字
- 2021-07-03 00:04:22
Getting ready
To compile PHP code and run it via NGINX, the preferred method is via PHP-FPM, a high-speed FastCGI Process Manager. We'll also need to install PHP itself and, for the sake of simplicity, we'll stick with the OS-supplied version. Those seeking the highest possible performance should ensure they're running PHP 7 (released December 3, 2015), which can offer a 2-3 times speed improvement for WordPress, while at the same time being up to four times more memory efficient compared to PHP 5.6.
To install PHP-FPM, you should run the following on a Debian/Ubuntu system:
apt-get install php7.0-fpm
For those running CentOS/RHEL, you should run the following:
sudo yum install php-fpm
As PHP itself is a prerequisite for the php-fpm packages, it will also be installed.
Note: Other packages such as MySQL will be required if you're intending to run this on a single VPS instance. Consult the WordPress documentation for a full list of requirements.
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- ThinkPHP 5實戰
- x86匯編語言:從實模式到保護模式(第2版)
- Data Analysis with Stata
- 深入淺出Serverless:技術原理與應用實踐
- 焊接機器人系統操作、編程與維護
- Unity UI Cookbook
- Integrating Facebook iOS SDK with Your Application
- WordPress 4.0 Site Blueprints(Second Edition)
- Hands-On Neural Network Programming with C#
- RESTful Web Clients:基于超媒體的可復用客戶端
- 嵌入式Linux C語言程序設計基礎教程
- Python Deep Learning
- Modular Programming with JavaScript
- Offer來了:Java面試核心知識點精講(框架篇)