一:环境搭建LAMP
1.1:搭建之前的
1.1.1、搭建之前需要把系统组件升级到最新版
本
yum Q -y update
1.1.2、关闭selinux
vi /etc/selinux/config #将
SELINUX=enforcing改为SELINUX=disabled
设置后需要重启才能生效:shutdown -r now
setenforce 0 #临时关闭命令
getenforce #检测selinux是否关闭,Disabled
为关闭
1.1.3、关闭防火墙
firewall- cmdQ --state #查看默认防
火墙状态,关闭后显示not running,开启后显
示running
systemctl stop firewalld.service #临时
关闭firewall
systemctl disable firewalld.service #禁
止firewall开机启动
1.2:搭建LAMP环境
1.2.1、安装所需所有软件仓库
Zabbix是建立在LAMP或者LNMP环境之上.
在此为了方便就使用yum安装LAMP环境。
yum install -y httpd mariadb-server
mariadb php php-mysql php-gd
libjpeg" php-ldap php-odbc php-pear
php-xml php-xmirpc php-mhash
rpm -ga httpd php mariadb #安装完
成后检查应用版本
1.2.2、编辑httpd
vi /etc/httpd/conf/httpd.conf