zabbix 3.2 install on centos 6
zabbix 3.2 install on centos 6
Zabbix 3.2 install on centos 7 Zabbix 3.0 只支持CentOS 7.0以上版本
Supported versions
RHEL 7 Oracle Linux 7 CentOS 7 Download yum repo.
# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
# wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
Server installation with MySQL database,the innodb_file_per_table
option enabled on MySQL.
# yum install zabbix-server-mysql zabbix-web-mysql
从最新版本的linux系统开始,默认的是 Mariadb而不是mysql!
使用系统自带的repos安装很简单:
# yum install -y mariadb mariadb-server 启动mariadb
# systemctl start mariadb 之前的服务管理命令还可以用
# service mariadb start 设置开机自启动
# systemctl enable mariadb 安全初始化,设置root密码等
# mysql\_secure\_installation 测试登录
# mysql -uroot -p shell\> mysql -uroot -p\<root\_password\> mysql\>
create database zabbix character set utf8 collate utf8\_bin; mysql\>
grant all privileges on zabbix.\* to [mailto:zabbix\@localhost]
identified by \'\<password\>\'; mysql\> quit; MariaDB \[(none)\]\> show
databases;
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--
=======================================
----------
Database
----------
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--
=======================================
---------------------
information\_schema
mysql
performance\_schema
zabbix
---------------------
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--
=======================================
4 rows in set (0.00 sec) Now import initial schema and data. version for 3.2 .
zcat /usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz | mysql
-uzabbix -p zabbix \# rpm -q zabbix-server-mysql To Database
configuration for Zabbix server
# sed -i \"s/\# DBHost/DBHost/g\" zabbix\_server.conf \# sed -i \"s/\#
DBPassword=/DBPassword=zabbix/g\" zabbix\_server.conf \# vim
/etc/zabbix/zabbix\_server.conf DBHost=localhost DBName=zabbix
DBUser=zabbix DBPassword=\<password\> To start
servers.之前的命令还可以使用
# service zabbix-server start \
# service zabbix-server stop \
# systemctl start zabbix-server \
# systemctl enable zabbix-server \
# vim /etc/httpd/conf.d/zabbix.conf \
# sed -i \"s/\# php\_value date.timezone
etc:
Europe\/Riga/php_value date.timezone Asia\/Shanghai/g"
/etc/httpd/conf.d/zabbix.conf <IfModule mod_php5.c> php_value
max_execution_time 300 php_value memory_limit 128M php_value
post_max_size 16M php_value upload_max_filesize 2M php_value
max_input_time 300 php_value always_populate_raw_post_data -1 #
php_value date.timezone Europe/Riga php_value date.timezone
Asia/Shanghai </IfModule> 启动Apache服务
# systemctl start httpd 开机启动Apache服务
# systemctl enable httpd access IP address
# yourip/zabbix
在客户端浏览器上面访问zabbix,开始WEB的前端配置,http://ZabbixIP/zabbix,按提示点击下一步
‘’’
Step1:下一步。
Step2:如果全部OK的话才能进行下一步的安装,如果有错误请返回到server端检查相关的软件包是否安装。
Step3:需要输入mysql数据库帐号密码,如果数据库不在zabbix服务器上面,在Host里面添加数据库服务器的地址,并且要用grant命令给数据库授权。
Step4:输入服务器端 host name or host IP addres;
‘’’
最后会自动写入配置文件:zabbix.conf.php,配置完成后出现登陆界面,根据官方文档的介绍,默认的用户是Admin,密码为zabbix,该用户是超级用户
Agent installation
This page covers installation of Zabbix agent. If needed, you may check
additional info about supported platforms and permission requirements
for the agent.
Red Hat Enterprise Linux / CentOS To install agent aft
pandoc
- 点赞
- 收藏
- 关注作者
评论(0)