hcymysql / slowquery

Slowquery图形化显示MySQL慢日志工具
https://dbaplus.cn/news-11-2520-1.html
145 stars 58 forks source link

部署起来太多坑了 #2

Open 853486395 opened 5 years ago

853486395 commented 5 years ago

难以部署起来。太多坑了。 以下error如何解决? 2019/05/05 15:47:03 [error] 6539#0: 1509 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: action in /usr/share/slowquery/slowquery.php on line 4 PHP message: PHP Notice: A session had already been started - ignoring session_start() in /usr/share/slowquery/slowquery.php on line 73" while reading response header from upstream, client: 192.168.20.118, server: localhost, request: "POST /slowquery.php?dbname=zabbix&page=1 HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fpm5.6.sock:", host: "192.168.20.119", referrer: "http://192.168.20.119/slowquery.php?dbname=zabbix&page=1" 2019/05/05 15:47:03 [error] 6539#0: 1509 FastCGI sent in stderr: "PHP message: PHP Notice: A session had already been started - ignoring session_start() in /usr/share/slowquery/slowquery.php on line 103 PHP message: PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /usr/share/slowquery/slowquery.php on line 146" while reading upstream, client: 192.168.20.118, server: localhost, request: "POST /slowquery.php?dbname=zabbix&page=1 HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fpm5.6.sock:", host: "192.168.20.119", referrer: "http://192.168.20.119/slowquery.php?dbname=zabbix&page=1" 2019/05/05 15:47:03 [error] 6539#0: *1509 FastCGI sent in stderr: "PHP message: PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /usr/share/slowquery/get_graph_data.php on line 24" while reading response header from upstream, client: 192.168.20.118, server: localhost, request: "POST /get_graph_data.php HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fpm5.6.sock:", host: "192.168.20.119", referrer: "http://192.168.20.119/slowquery.php?dbname=zabbix&page=1"

hcymysql commented 5 years ago

你用yum install httpd php php-mysql这样的环境,别用ngnix+php+FastCGI