CentOS 7 yum install Zabbix 2.4.7
1.
RHEL/CentOS 7
# yum install gcc gcc-c++ make openssl-devel curl wget net-snmp net-snmp-utils net-snmp-libs net-snmp-devel gnutls gnutls-devel libxml2 libxml2-devel
Step 2: Install MariaDB Database and Library
# yum install mariadb-server mariadb-client mariadb-devel [On RHEL/CentOS 7
Set MySQL root Password
# mysql_secure_installation
Step 3: Install Apache Web Server and PHP
# yum install httpd php php-mysql php-gd pgp-cli php-xml php-bcmath php-mbstring mod_ssl openssl [On RHEL/CentOS 7]
5. Next, you need to tune PHP interpreter and adjust some values in order to run Zabbix Server. So, open Apachephp.ini configuration file for editing by issuing the following command:
# nano /etc/php.ini [On RHEL/CentOS 7]
post_max_size = 16M max_execution_time = 300 max_input_time = 300 date.timezone = Continent/City always_populate_raw_post_data = -1
# systemctl restart httpd.service [On RHEL/CentOS 7]
Step 4: Download, Compile and Install Zabbix Server
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
# yum install zabbix-server-mysql zabbix-web-mysql
Example for installing Zabbix agent only.
# yum install zabbix-agent
5
安装好LAMP环境,zabbix_server后,创建数据库,然后从官网(http://www.zabbix.com/download.php)下载数据库文件导入到数据库
导入数据库文件的顺序是:schema.sql data.sql images.sql
http://12.34.56.78/zabbix/安装页面时才能连接上数据库
连接成功后,默认登录用户名密码是:admin zabbix
download
3.0
2.4.X
安装zabbix-agent
centos 6 64bit #根据不同的系统版本选择相应的安装包,要不然无法安装
2.4
# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
yum install zabbix-agent
安装完成后,找到配置文件:
/etc/zabbix/zabbix_agentd.conf
在里面修改两项:
Server=Zabbix Server IP ServerActive=Zabbix Server IP
保存退出
然后启动zabbix-agent
systemctl start zabbix-agnet.service
然后到/var/log/zabbix/zabbix-agent.log查看是否有错误,没有就说明启动正常
参考:
http://www.tecmint.com/install-and-configure-zabbix-agents-on-centos-redhat-and-debian/
3.0.
centos 6 32bit
http://repo.zabbix.com/zabbix/3.0/rhel/6/i386/zabbix-agent-3.0.0-2.el6.i686.rpm
#rpm -ivh zabbix-agent-3.0.0-2.el6.i686.rpm
安装完成后,启动zabbix-agent
#service zabbix-agent start
修改iptables,开放10050端口,重启iptables即可
目录 返回
首页