王殊勋的个人博客

只要开始,虽远不迟!

亲测可用的网易源: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [base] name=CentOS-6 - Base - 163.com baseurl=http://mirrors.163.com/centos/6/os/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os gpgcheck=1 gpgkey=htt
阅读全文 »

zabbix_get 是 zabbix 服务端的一个命令,用于检测 agent 端的配置是否正确,可以很方便地知道 key 是否能正常获取到数据,在测试自定义监控的时候特别有用. 1 2 3 4 5 6 7 8 9 10 $ zabbix_get -h Zabbix get v2.2.17 (revision 65977) (27 February 2017) usage: zabbix_get [-hV] -s [-p ] [-I ] -k Options: -s --host # agent 端的 ip -p --port # agent 监听的端口 默认是100
阅读全文 »

添加zabbix 源并安装配置. 添加源库: 1 $rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm 安装: 1 2 $yum install zabbix-agent -y $chkconfig zabbix-agent on #添加开机启动 注意,如果网速过慢导致安装失败,请直接下载对应有agent包再安装,效果一样. 1 2 $wget http://101.96.10.64/repo.zabbix.com/zabbix/3
阅读全文 »

a.安装 数据库 1 2 $ rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm $ yum clean all b.安装Zabbix server,Web前端,agent 1 $ yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent c.创建初始数据库 1 2 3 4 5 $ mysql -uroot -p password mysql> create da
阅读全文 »

Zabbix安装好之后,监控图形页面出现字符集乱码. 解决方法: 1、复制本地电脑 C:\Windows\Fonts\simkai.ttf(楷体)上传到zabbix服务器网站目录的fonts目录下. 2、zabbix网站目录fonts目录查找如下: 1 2 3 4 5 6 $ whereis zabbix zabbix: /usr/lib/zabbix /etc/zabbix /usr/share/zabbix $ cd /usr/share/zabbix/fonts/ $ ll 总用量 23024 lrwxrwxrwx. 1 root root 33 4月 10 11
阅读全文 »

从网上找了几个速度比较快的镜像地址: 1 2 3 4 5 Docker 官方中国区: https://registry.docker-cn.com 网易: http://hub-mirror.c.163.com ustc: https://docker.mirrors.ustc.edu.cn 修改方法: 直接设置 –registry-mirror 参数,仅对当前的命令有效: 1 docker run hello-world --registry-mirror=https://docker.mirrors.ustc.edu.cn 修改 /etc/default/docke
阅读全文 »
0%