三部署

10.0.0.128.96 php
vim /etc/php-fpm.d/www.conf
listen = 0.0.0.0:9000
listen.allowed_clients = 127.0.0.1,10.0.128.243
mkdir /html

10.0.128.243 nginx
vim /etc/nginx/conf.d/default.conf
location ~ .php$ {
root /html;
fastcgi_pass 10.0.128.96:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME d o c u m e n t r o o t document_root documentrootfastcgi_script_name;
include fastcgi_params;
}
/usr/share/nginx/html 10.0.128.96/24(rw,sync,no_root_squash)

10.0.128.92 mariadb
feedback=ON
三台服务器实现分离部署php,nginx,mariadb

你可能感兴趣的:(三部署)