Centos6安装zabbix2.4初始化部署
##腾讯云实验室Centos6安装zabbix2.4###说明:腾讯云实验室的yum源提供的是zabbix2.4版的安装包。
#关闭防火墙和selinux
systemctlstopfirewalld
systemctldisablefirewalld
setenforce0
getenforce
#安装基础组件(centos7)
yuminstall-ygccgcc-c++
yuminstall -yhttpdmysqlmysql-server php php-gd php-mysql php-bcmath php-mbstring php-xml curl curl-devel net-snmp net-snmp-devel perl-DBI
yuminstall -ymysql-develcurlelinkslynxmlocate
#启动httpd和mysql服务
echo'ServerNameweb01' > /etc/httpd/conf.d/srv.conf
echo'' >/var/www/html/p.php
servicehttpdrestart
servicemysqldrestart
chkconfighttpdon
chkconfigmysqldon
elinks127.0.0.1/p.php
==============================
#创建apache与php相关的配置
cat > /etc/httpd/conf.d/zabbix_cf.conf
页:
[1]