centos安装zabbix 4.0服务端方法

centos安装zabbix 4.0服务端方法

日期:2019年5月5日 下午2:31 分类:centos

1、服务器安装docker

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

sudo yum makecache fast

sudo yum -y install docker-ce

sudo systemctl start docker

2、服务器安装docker-compose

1)首先检查linux有没有安装python-pip包,终端执行 pip -V
pip -V

2)没有python-pip包就执行命令
yum -y install epel-release

3)执行成功之后,再次执行yum -y install python-pip
yum -y install python-pip

4)对安装好的pip进行升级 pip install --upgrade pip
pip install --upgrade pip

5)终端执行:pip install docker-compose
pip install docker-compose

6)检查docker-compose 安装
docker-compose -version

3、zabbix解决图形乱码问题

1)将windows系统的simkai.ttf字体拷入到linux系统中
2)将内容拷入到zabbix容器内
docker cp /opt/zabbix/simkai.ttf b46e132b2468:/usr/share/fonts/ttf-dejavu/simkai.ttf

3)建立映射软连接
ln -s /usr/share/fonts/ttf-dejavu/simkai.ttf simkai.ttf
4)修改字体设置
vi /usr/share/zabbix/include/defines.inc.php
修改ZBX_GRAPH_FONT_NAME的值为simkai


为您推荐


版权声明:

fm0898.com小部分文章引用或者参考了网络上传播的部分开源开放代码,我站采用的这部分代码仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请 联系我们并出示版权证明以便删除 !

文章讨论


  • higo.vn
    2020-01-13 14:42:01回复

    I have read so many articles or reviews on the topic of the blogger lovers but this paragraph is in fact a good post, keep it up.

  • Hotnews Populer
    2020-01-14 9:54:32回复

    My brother recommended I might like this website. He was entirely right. This post actually made mmy day. You can not imgine simply how much time I had spemt for this info! Thanks!

  • спортпит
    2020-01-14 20:13:12回复

    Hi! I'm at work browsing your blog from my new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the excellent work!

  • situs website bandar bandar66 resmi
    2020-01-14 23:41:38回复

    Ꭺn intriguing discussion іs definitely worth commеnt. There'ѕ no doubt thаt that yߋu ѕhould publish more on this issue, it may not be a taboo subject Ьut usualⅼy folks don't talk aƄoᥙt these issues. To the next! Aⅼl thе bеst!!

  • van escort bayan
    23:16回复

    Hello, this content is very nice. We are van escort web site about new company. Thank for this content, i will share this content to my social network accounts. Van escort bayan is here for new members.