安装出现 PHP option max_input_time       60   300   off

解决:在php.ini文件中将两处max_input_time = 60 的 60 改为 300


安装出现PHP always_populate_raw_post_data    on  off    off

解决:CFrontendSetup.php 文件中修改为:


See: http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
         *
         * @return array
         */
        public function checkPhpAlwaysPopulateRawPostData() {
                $current = ini_get('always_populate_raw_post_data');
                  $current=-1;
                return array(
                        'name' => _('PHP always_populate_raw_post_data'),
                        'current' => ($current != -1) ? _('on') : _('off'),
                        'required' => _('off'),
                        'result' => ($current != -1) ? self::CHECK_FATAL : self::CHECK_OK,
                        'error' => _('PHP always_populate_raw_post_data must be set to -1.')
                );

        }


 

next

连接数据库

vi /usr/local/zabbix/etc/zabbix_agentd.conf     将Hostnsame=zabbix server 改为 Hostname=本机IP或主机名

vi /usr/local/zabbix/etc/zabbix_agentd.conf      基本配置不变,DBpasswd=   改为 DBpasswd = mysql数据库密码

zabbix server web端的常见错误_第1张图片


next


登录名/密码:admin/zabbix


登录成功显示 zabbix sever 没有运行 并且查看 /tmp/zabbix_server.log日志文件显示

1576:20170307:071712.529 database is down: reconnecting in 10 seconds

  1576:20170307:071722.529 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

显然'/var/lib/mysql/mysql.sock'不存在,默认mysql.sock在/tmp下,创建软链接,将mysql.sock指向/var/lib/mysql/mysql.sock :  ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock