In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
System environment: LNMP
Linux: Centos 7.2
Nginx: 1.10.3
Mysql: 5.6.35
PHP: 5.4.16
Install zabbix-server
1 Repository installation
Rpm-ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
2 Install Zabbix-server
Yum install-y zabbix-release zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql zabbix-agent
3 Creating initial database
Shell > mysql-uroot-pmysql > create database zabbix character set utf8 collate utf8_bin;mysql > grant all privileges on zabbix.* to zabbix@localhost identified by'; mysql > quit
Zcat / usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz | mysql- uzabbix-p zabbix
4 Database configuration for Zabbix server
# vi / etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=
5 Starting Zabbix server process
# systemctl start zabbix-server# systemctl enable zabbix-server
6 PHP configuration for Zabbix frontend
Vi / etc/php.inimax_execution_time 300memory_limit 128Mpost_max_size 16Mupload_max_filesize 2Mmax_input_time 300always_populate_raw_post_data-1date.timezone Asia/Shanghai
7. Copy frontend web files
Cp-R / usr/share/zabbix / usr/local/nginx/html
8. Starting Service
/ etc/init.d/php-fpmsystemctl restart nginxsystemctl start zabbix-server.service
9. Install web
Http://localhost/zabbix
problem
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]
This problem occurs when you start after the installation is complete. This is due to the type enhancement of PHP 7.1.0, and it is easy to find the include/func.inc.php file in the Zabbix WEB directory.
Problem solving
Sed-I'/ $last = strtolower (substr ($val,-1)); / a$val = substr ($val,0,-1);'/ usr/local/nginx/html/zabbix/include/func.inc.php
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.