zabbix須要nginx+php+mysql環境
#下載nginx
一、https://nginx.org/en/download.html?_ga=2.163156028.1417077246.1565310048-1198126668.1565310048php
#安裝依賴庫
二、yum install gcc gcc-c++ make automake autoconf libtool pcre* zlib openssl openssl-devel
html
#編譯並安裝
三、./configure --prefix=/usr/local/nginx
四、make && make install
mysql
#設置使用systemctl管理服務
五、vim /usr/lib/systemd/system/nginx.servicelinux
[Unit] Description=nginx After=network.target [Service] Type=forking ExecStart=/usr/local/nginx/sbin/nginx [install] WantedBy=multi-user.target
#設置環境變量
六、vim /etc/profileexport PATH=$PATH:/usr/local/nginx/sbin/
nginx
#關閉selinux和防火牆
vim /etc/selinux/config
改成disablesc++
systemctl stop firewalld.service systemctl disable firewalld.service
#安裝完成sql