php安装后telnet 127.0.0.1 9000不通的问题

mark文

正常按php安装流程安装完nginx和Php-fpm后,启动服务,发现nginx报502错误.

检查nginx错误日志,说是127.0.0.1:9000收不到数据

在命令行下telnet 127.0.0.1 9000 ,返回connected但立即被中断.

 

处理结果:

检查/etc/php-fpm.d/www.conf文件中

listen.allowed_clients = 127.0.0.1

将这行注释掉,或改为

listen.allowed_clients = 127.0.0.1,localhost,10.60.11.11

最后的10.60.11.11是指本机IP


( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0001355192{main}( ).../index.php:0
20.0001355480require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.167410153224require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.168610224368include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.248610789992get_template_part( ).../single.php:5
60.248610790512locate_template( ).../general-template.php:167
70.248610790608load_template( ).../template.php:643
80.248610790992require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.253110775808cwppos_show_review( ).../content-single.php:29

发表评论

电子邮件地址不会被公开。 必填项已用*标注