12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-12-25 09:55:43
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
系统环境:LNMPLinux: Centos 7.2Nginx:1.10.3Mysql:5.6.35PHP:5.4.16安装zabbix-server1 Repository installationrpm-ivhhttp://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
系统环境:LNMP
Linux: Centos 7.2
Nginx:1.10.3
Mysql:5.6.35
PHP:5.4.16
安装zabbix-server
1 Repository installation
rpm-ivhhttp://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
2 Install Zabbix-server
yuminstall-yzabbix-releasezabbix-server-mysqlzabbix-getzabbix-webzabbix-web-mysqlzabbix-agent
3 Creating initial database
shell>mysql-uroot-p<root_password>mysql>createdatabasezabbixcharactersetutf8collateutf8_bin;mysql>grantallprivilegesonzabbix.*tozabbix@localhostidentifiedby'<password>';mysql>quit;
zcat/usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz|mysql-uzabbix-pzabbix
4 Database configuration for Zabbix server
#vi/etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=<password>
5Starting Zabbix server process
#systemctlstartzabbix-server#systemctlenablezabbix-server
6PHP configuration for Zabbix frontend
vi/etc/php.inimax_execution_time300memory_limit128Mpost_max_size16Mupload_max_filesize2Mmax_input_time300always_populate_raw_post_data-1date.timezoneAsia/Shanghai
7. copy frontend web files
cp-R/usr/share/zabbix/usr/local/nginx/html
8. Starting Service
/etc/init.d/php-fpmsystemctlrestartnginxsystemctlstartzabbix-server.service
9. Install web
http://localhost/zabbix
问题
A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->proce***equest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpMemoryLimit() → str2mem() in include/func.inc.php:410]
A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->proce***equest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpPostMaxSize() → str2mem() in include/func.inc.php:410]
A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->proce***equest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpUploadMaxFilesize() → str2mem() in include/func.inc.php:410]
安装完成之后启动就出现这个问题,这个是因为PHP 7.1.0类型强化,处理方法也很简单找到Zabbix WEB目录下include/func.inc.php文件
问题解决
sed-i'/$last=strtolower(substr($val,-1));/a$val=substr($val,0,-1);'/usr/local/nginx/html/zabbix/include/func.inc.php
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19