sunren 发表于 2019-1-24 09:58:54

Centos7安装zabbix2.4并进行初始化配置

  ##腾讯云实验室Centos7安装zabbix2.4(金测试OK)##
  #说明:腾讯云实验室的yum源提供的是zabbix2.4版的安装包。
  #文档中的红字代码是必须执行的操作。
  #关闭防火墙和selinux
  systemctlstopfirewalld
  systemctldisablefirewalld
  setenforce0
  getenforce
  

  #安装基础组件(centos7)
  yuminstall-ygccgcc-c++
  yuminstall -yhttpdmariadbmariadb-server php php-gd php-mysql php-bcmath php-mbstring php-xml curl curl-devel net-snmp net-snmp-devel perl-DBI
  yuminstall -ymariadb-develcurlelinkslynxmlocate
  

  #启动httpd和mariadb服务
  echo'ServerNameweb01' > /etc/httpd/conf.d/srv.conf
  echo'' >/var/www/html/p.php
  servicehttpdrestart
  servicemariadbrestart
  chkconfighttpdon
  chkconfigmariadbon
  elinks127.0.0.1/p.php
  

  ==============================
  #创建apache与php相关的配置
  cat > /etc/httpd/conf.d/zabbix_cf.conf
页: [1]
查看完整版本: Centos7安装zabbix2.4并进行初始化配置