Centos7.2安装zabbix3.0

前端之家收集整理的这篇文章主要介绍了Centos7.2安装zabbix3.0前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Centos7.2YUM安装zabbix3.0

防火墙和selinux关闭,这个我就不说了。

1.启动apache

yum -yinstall httpd

systemctl start httpd.service

systemctl enable httpd.service

systemctl status httpd.service

2. 启动mariadb

yum install mariadb mariadb-server -y

systemctl start mariadb

systemctl enable mariadb

MysqL_secure_installation

Set root password? [Y/n]

New password:

Re-enter new password:

Remove anonymous users? [Y/n]

Disallow root login remotely? [Y/n]

Remove test database and access to it? [Y/n]

Reload privilege tables now? [Y/n]

3.安装PHP

yum -y install PHP

yum install PHP-MysqL-y

systemctl restart httpd

4. 配置yun源

rpm -ivhhttp://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

5. 安装服务器端包

yum install -y zabbix-server-MysqL zabbix-web-MysqL zabbix-agentmariadb-server

6.初始化数据库

MysqL -u root �Cp

create database zabbix character set utf8 collate utf8_bin;

grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

exit

7. cd /usr/share/doc/zabbix-server-MysqL-3.0.10

zcat create.sql.gz | MysqL -u root -p zabbix

8.启动zabbix

vim /etc/zabbix/zabbix_server.conf

在末尾加上以下这些

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

vim /etc/httpd/conf.d/zabbix.conf

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 Asia/Shanghai

systemctl start zabbix-server

systemctl enable zabbix-server

安装zabbix

在自己的浏览器输入 http://zabbix-server ip/zabbix

40429">


进来之后发现时英文的,心里一阵不爽,必须要用中文

点击右上角的人物,黄色区域改成中文的。

返回来就是中文的了。

猜你在找的CentOS相关文章