[root@localhost ~]# /etc/init.d/zabbix-server startStarting Zabbix server: [确定] [root@localhost ~]# /etc/init.d/zabbix-agent startStarting Zabbix agent: [确定] [root@localhost ~]# /etc/init.d/httpd start正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.0.133 for ServerName [确定] 修改mysql配置文件
[root@localhost ~]# vim /etc/my.cnf增加如下内容
[mysql]default-character-set=utf8[mysqld]character_set_server=utf8 启动mysql
[root@localhost ~]# /etc/init.d/mysqld startPlease report any problems with the /usr/bin/mysqlbug script! [确定]正在启动 mysqld: [确定] 创建数据库,导入数据
[root@localhost ~]# mysql -uroot -e "create database zabbix" [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/schema.sql [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/images.sql [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/data.sql [root@localhost ~]# mysql -uroot -e "grant all on *.* to 'zabbix'@'localhost' identified by 'zabbix';" 编辑zabbix-server配置文件,配置DBUser,DBPassword,然后重启zabbix-server。
[root@localhost ~]## vim /etc/zabbix/zabbix_server.confDBUser=zabbixDBPassword=zabbix [root@localhost ~]# /etc/init.d/zabbix-server restartShutting down Zabbix server: [失败]Starting Zabbix server: [确定] [root@localhost ~]# netstat -lnp|grep zabbixtcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 1691/zabbix_agentdtcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 2078/zabbix_servertcp 0 0 :::10050 :::* LISTEN 1691/zabbix_agentdtcp 0 0 :::10051 :::* LISTEN 2078/zabbix_server 网页安装zabbix
浏览器访问 ,默认会有“It is not safe to rely on the system's timezone settings”这样的警告信息,根据其中提示,需要 vim /etc/php.ini 设置 date.timezone="Asia/Shanghai",重启apache后刷新就没有了,点next。
wKiom1d6YZmhbi8sAAEaQMOgHrc357.png
wKiom1d6YZmhbi8sAAEaQMOgHrc357.png
它会提示一些参数不合适:
wKiom1d6YaSjHNZSAAE9AbFOECk682.png
编辑配置文件 /etc/php.ini,修改对应的项目,然后点击retry。
[root@localhost ~]# vim /etc/php.inipost_max_size = 16Mmax_execution_time = 300max_input_time = 300 [root@localhost ~]# service httpd restart停止 httpd: [确定]正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.0.133 for ServerName [确定]
wKiom1d6YaezHg3hAAEpUswH7xg707.png