官术网_书友最值得收藏!

  • 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.
主站蜘蛛池模板: 泗阳县| 尼勒克县| 吐鲁番市| 澄迈县| 中西区| 容城县| 将乐县| 靖安县| 英山县| 金华市| 山阴县| 翼城县| 桃园市| 汝南县| 宝清县| 平乡县| 仪征市| 两当县| 鹤壁市| 洛川县| 高清| 金坛市| 调兵山市| 清远市| 徐水县| 宿松县| 孟连| 湖北省| 攀枝花市| 安陆市| 江华| 绥棱县| 鸡西市| 门源| 萍乡市| 子长县| 鱼台县| 新闻| 得荣县| 松原市| 和平县|