一:环境搭建LAMP
1.1:搭建之前的
1.1.1、搭建之前需要把系统组件升级到最新版本
yum -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-cmd --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-xmlrpc php-mhash
rpm -qa httpd php mariadb