Centos install zabbix

  1. 安装PHP、mysql
    yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml mysql-server 
    更改PHP设置:
    sed -i "s/;date.timezone =/date.timezone = Asia\/Shanghai/g" /etc/php.ini
    sed -i "s#max_execution_time = 30#max_execution_time = 300#g" /etc/php.ini
    sed -i "s#post_max_size = 8M#post_max_size = 32M#g" /etc/php.ini
    sed -i "s#max_input_time = 60#max_input_time = 300#g" /etc/php.ini
    sed -i "s#memory_limit = 128M#memory_limit = 128M#g" /etc/php.ini
    sed -i "/;mbstring.func_overload = 0/ambstring.func_overload = 2\n" /etc/php.ini
  2. 安装zabbix
    rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
    yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway
  3. 安装nginx
    yum -y install epel-release
    yum -y install nginx
  4. 初始化 Mysql 数据库
    # mysql -u root -p
    # mysql> CREATE DATABASE zabbix CHARACTER SET UTF8;
    # mysql> GRANT ALL PRIVILEGES on zabbix.* to ‘zabbix‘@‘localhost‘ IDENTIFIED BY ‘SECRET_PASSWORD‘;
    # mysql> FLUSH PRIVILEGES;
    # mysql> quit
    导入zabbix的数据结构
    # mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/schema.sql
    # mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/images.sql
    # mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/data.sql
  5. 修改zabbix配置文件,使其能访问数据库
    # vi /etc/zabbix/zabbix_server.conf
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=zabbix
  6. 重启zabbix
    service zabbix-server start
    网站配置文件默认路径:
    /usr/share/zabbix
  7. 设置nginx能访问zabbix
    cd /usr/share/nginx/html
    ln -s /usr/share/zabbix zabbix
    删除软链接 rm -rf zabbix 注意不是 rm -rf zabbix/
  8. 官方网站:https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages
时间: 2024-10-05 21:49:48

Centos install zabbix的相关文章

How to install Zabbix on CENTOS 7

when you have installed zabbix , it is important of changing password. How to install Zabbix on CENTOS 7 Setup 1 INSTALL Create the repos of Zabbix rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rp

yum install zabbix

环境: centos 6.5 下载并安装epel源 links  http://fedoraproject.org/wiki/EPEL rpm -ivh epel-* 2.安装amp环境 yum install httpd mysql mysql-server php php-mysql -y 3.安装zabbix yum install zabbix22.x86_64 zabbix22-agent.x86_64 zabbix22-server.noarch zabbix22-server-my

How to Install Zabbix Agent on Windows System

Zabbix Agent is installed on remote systems needs to monitor through Zabbix server. The Zabbix agent collects resource utilization and applications data on client system and provide such information to zabbix server on their requests. This article wi

Install Zabbix 3.4

Install Zabbix 3.4 which is an enterprise open source monitoring system. It's possible to monitor not only Linux but Windows, Solaris, IBM AIX and others. [1] On this example, It based on that SELinux is Permissive or Disabled. [2] Install Apache htt

CentOS install Desktop and Remotely access 远程管理Centos桌面 TigerVNC

Centos 安装完毕,但是通过windows 远程管理桌面: 当然我们可以通过secureCRT工具连接命令行,但是我希望通过windows 连接他们的远程桌面: 首先我们的保证 X windows等桌面环境安装成功: yum groupinstall -y "Desktop"   "Desktop Platform"   "Desktop Platform Development" "Fonts" "Genera

install zabbix

#yum install maridb and php apacheyum install make httpd php mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-fpm php-gd php-mysql php-bcmath php-mbstring php-xml unixODBC-devel OpenIPMI-devel libxml2-devel mariadb mariadb-server -y #add new us

CENTOS 6.8 INSTALL ZABBIX 3.2

查看自己得数据库版本yum list installed | grep mysql----------------------------------------Expected output:mysql-libs.x86_64    5.1.73-5.el6_6     @anaconda-CentOS-201508042137.x86_64/6.7---------------------------------------- 删除自己得老版本数据库yum remove mysql* 添加新

Centos 搭建 Zabbix Agent 客户端

如需搭建zabbix server端,请参考:Zabbix-Server配置 环境: Zabbix-Server: Centos 6.8   IP:192.168.126.129    #Zabix-Server地址(此篇文章可不必在意) Zabbix-Agent: Centos 6.8    IP:192.168.126.136 1.安装源码 [[email protected] ~]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86

linux centos安装zabbix 4.0服务端

1.服务器安装docker sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sudo yum makecache fast sudo yum -y install docker-ce sudo systemctl sta