1. 环境搭建LAMP
前提Centos系统安装完成: 确认一下:
cat /etc/redhat-release # 查看CentOS版本
cat /proc/version #查看存放与内核相关的文件
1.1 搭建之前的操作
1.1.1 升级系统组件到最新的版本
yum -y update
1.1.2 关闭selinux
vi /etc/selinux/config #将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效
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 #安装完成后检查应用版本
1.2.2 编辑httpd
vi /etc/httpd/
centos安装zabbin.o
最新推荐文章于 2022-09-25 22:05:44 发布