文章目录
zabbix
zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。 zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。 zabbix由2部分构成,zabbix server与可选组件zabbix agent。 zabbix server可以通过SNMP,zabbix agent,ping,端口监视等方法提供对远程服务器/网络状态的监视,数据收集等功能,它可以运行在Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X等平台上。
zabbix+LNMP部署
1.安装Nginx
————————————安装Nginx————————————
systemctl stop firewalld.service
setenforce 0
wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
yum clean all && yum makecache
yum install -y nginx
systemctl start nginx
systemctl enable nginx
netstat -natp | grep nginx
此时打开浏览器输入本机IP加上:80即可
2.安装mysql
————————————安装mysql————————————
yum install -y mariadb-server mariadb
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation
Enter current password for root (enter for none): (这里直接回车)
Set root password? [Y/n] y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] n
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] n
Reload privilege tables now? [Y/n] y
3.安装PHP
————————————安装PHP————————————
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php72w php72w-mysql php72w-mbstring php72w-gd php72w-fpm php72w-devel
php -v
4.配置nginx支持PHP
————————————配置Nginx支持PHP————————————
vim /etc/php-fpm.d/www