关闭防火墙与selinuxsystemctl stop firewalldsetenforce 0安装apache并启动yum install httpd -ysystemctl enable --Now httpd安装数据库并启动yum install mariadb-server mariadb -ysystemctl enable --Now mariadb安装PHPyum install PHP PHP-MysqL PHP-gd PHP-pear -y测试PHPvim/var/www/HTML/testPHP.PHP编辑内容如下<?PHP PHPinfo();?>重启apachesystemctl restart httpd浏览器访问 http://server-ip-address/testPHP.PHP. 将会显示PHP的版本信息.
2.安装zabbix2.1下载zabbix官方源rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpmyum clean allyum makecache
2.2安装Zabbix服务器和代理yum -y install zabbix-server-MysqL zabbix-agent
2.3安装启用红帽软件插件yum -y install centos-release-sc
2.4编辑文件/etc/yum.repos.d/zabbix.repo并启用zabbix-frontend存储库[zabbix-frontend]...enabled=1...
2.5安装Zabbix前端软件包yum -y install zabbix-web-MysqL-scl zabbix-apache-conf-scl
2.6创建初始数据库MysqL -urootMariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;query OK, 1 row affected (0.00 sec)MariaDB [(none)]> create user zabbix@localhost IDentifIEd by '123456'; //密码自定义query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> flush privileges;query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> quitBye
2.7在Zabbix服务器主机上,导入初始架构和数据zcat /usr/share/doc/zabbix-server-MysqL-5.0.12/create.sql.gz |MysqL -uzabbix -p'123456' zabbix
2.8编辑文件/etc/zabbix/zabbix_server.confDBHost=localhost //取消这行注释DBname=zabbixDBUser=zabbixDBPassword=123456 //取消注释并把密码改为之前设置的密码
2.9编辑文件/etc/opt/rh/rh-PHP72/PHP-fpm.d/zabbix.conf,取消注释并为您设置正确的时区PHP_value[date.timezone] = Asia/Shanghai
2.10启动Zabbix服务器和代理进程systemctl restart zabbix-server zabbix-agent httpd rh-PHP72-PHP-fpmsystemctl enable zabbix-server zabbix-agent httpd rh-PHP72-PHP-fpm
3.配置Zabbix前端连接到新安装的Zabbix前端:http:// server_ip_or_name /zabbix
设置中文界面
总结
以上是内存溢出为你收集整理的yum安装zabbix5.0全部内容,希望文章能够帮你解决yum安装zabbix5.0所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)