测试环境Centos 7 X64
修改主机名称:hostnamectl set-hostname zabbix02
关闭selinux:临时关闭(setenforce 0),永久关闭(vi /etc/selinux/config(把修改成selinux=disabled))
[root@zabbix01 ~]# getenforce
Disabled
关闭防火墙:临时关闭(systemctl stop firewalld.service),永久关闭(systemctl disable firewalld.service)
安装环境:
安装apache: yum install -y httpd
httpd服务开机进行自启:systemctl enable httpd.service
启动httpd服务:systemctl start httpd.service
查看httpd是否启动正常:systemctl status httpd.service
yum install -y mariadb mariadv-server \\安装mariadb
systemctl enable mariadb.service \\mariadb开机启动