0%

zabbix安装

安装

init.sh
1
2
3
4
5
6
7
8
9
10
11
# 安装软件仓库
rpm -Uvh https://repo.zabbix.com/zabbix/5.2/rhel/8/x86_64/zabbix-release-5.2-1.el8.noarch.rpm
# 这是代理 (非必要)
export https_proxy=http://10.10.103.241:7890 http_proxy=http://10.10.103.241:7890 all_proxy=socks5://10.10.103.241:7890
# 安装服务 (服务端)
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-agent -y
# 安装服务 (客户端)
dnf install zabbix-agent -y
# 开启远程访问
setsebool -P httpd_can_network_connect_db on
setsebool -P httpd_can_connect_zabbix on
阅读全文 »

本文,翻译并节选至 rfc2445 规范文档

首先一下是一个ICS文件的内容

BEGIN:VCALENDAR
    PRODID:-//Chen Wei//2016 China Public Holiday Calendar//EN
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    X-WR-CALNAME:2016 China Public Holiday
    X-WR-TIMEZONE:Asia/Shanghai
    X-WR-CALDESC:上证公告[2015]36号
    BEGIN:VEVENT
        DTSTAMP:20160101T043225Z
        UID:20161007-holiday@infinet.github.io
        DTSTART;VALUE=DATE:20161007
        DTEND;VALUE=DATE:20161008
        STATUS:CONFIRMED
        SUMMARY:国庆节
    END:VEVENT
END:VCALENDAR

概览

依次执行以下命令即可

yum install -y epel-release
yum install -y chrony
timedatectl set-timezone Asia/Shanghai
chronyc -a makestep
systemctl start chronyd.service
systemctl enable chronyd.service 
阅读全文 »

今天刷到10道面试题,感觉挺好玩,就在这里分享下。来看看你能回答几道题呢?

阅读全文 »