zabbix常见问题解决

1、zabbix数据库密码需要在配置文件中写好
vi /etc/zabbix/zabbix_server.conf
DBName=zabbix
DBUser=root          --你的mysql用户名
DBPassword=123456      --根据你的密码填写
 
2、字体乱码
在有网络的情况下: yum -y install wqy-microhei-fonts cp /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /usr/share/fonts/dejavu/DejaVuSans.ttf
 
1.关闭selinux和firewall
1.1检测selinux是否关闭
[root@localhost ~]# getenforce 
Disabled                                     #Disabled 为关闭
1.1.1临时关闭
[root@localhost ~]# setenforce 0  #设置SELinux 成为enforcing模式
 
3永久关闭
[root@localhost ~]# vi /etc/selinux/config:  
将SELINUX=enforcing改为SELINUX=disabled
设置后需要重启才能生效
1.2查看默认防火墙状态
[root@localhost ~]# firewall-cmd --state
not running           #关闭后显示not running,开启后显示running
1.2.1停止firewall
[root@localhost ~]# systemctl stop firewalld.service
1.2.2禁止firewall开机启动
[root@localhost ~]# systemctl disable firewalld.service
 
测试环境,关闭了防火墙(生产环境不建议关闭,根据需求设置防火墙
[root@centos78 ~]# systemctl stop firewlld.service       关闭防火墙
[root@centos78 ~]# systemctl disable firewalld.service  开机禁用防火墙启动
posted @ 2020-08-19 10:23  IT小院  阅读(412)  评论(0)    收藏  举报