1.安装php
yum install php php-fpm php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc -y
2.上传ntunnel_mysql.php 到 Linux指定位置
ntunnel_mysql.php通过navicat安装目录下获取
nginx+php+navicat http通道连接_第1张图片
上传到Linux /usr/local/nginx/html目录下
3.配置nginx
location ~ .php?.*$ {

    root          /usr/local/nginx/html/;

    fastcgi_pass   127.0.0.1:9000;

    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

    include        fastcgi_params;

}
4.重启php-fpm ,nginx
systemctl restart php-fpm nginx
5.测试是否成功

nginx+php+navicat http通道连接_第2张图片

6.通过navicat连接
nginx+php+navicat http通道连接_第3张图片