Zabbix用に、DBとユーザを作成。
[root@localhost ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.6.23 MySQL Community Server (GPL) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database zabbix character set utf8; Query OK, 1 row affected (0.00 sec) mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'DBのPassword'; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye [root@localhost ~]#
Zabbixの初期データ設定。
[root@localhost ~]# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.4/create/schema.sql Enter password: [root@localhost ~]# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.4/create/images.sql Enter password: [root@localhost ~]# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.4/create/data.sql Enter password: [root@localhost ~]# vi /etc/zabbix/zabbix_server.conf
DBとTimeZoneについて設定を変更。
[root@localhost ~]# vi /etc/zabbix/zabbix_server.conf DBPasswordを設定。 [root@localhost ~]# [root@localhost ~]# vi /etc/httpd/hconf.d/zabbix.conf php_value date.timezone Asia/Tokyo を設定。 [root@localhost ~]#