楚阿旗

博客园 首页 新随笔 联系 订阅 管理
  54 随笔 :: 1 文章 :: 0 评论 :: 5225 阅读

12 2019 档案

摘要:序列化 import pickle friend = {"Dan": [20, "Lodon", 123123], "Mary" : [24, "Madi", 333333]} with open("friend.dat", "wb") as f: pickle.dump(friend, f) 反序 阅读全文
posted @ 2019-12-31 09:34 楚阿旗 阅读(115) 评论(0) 推荐(0) 编辑

摘要:subnetcalc.py class SubnetCalc(object): def __init__(self, network, mask): self.network = network.split(".") self.msk = mask.split(".") @property def 阅读全文
posted @ 2019-12-27 15:41 楚阿旗 阅读(243) 评论(0) 推荐(0) 编辑

摘要:1. 安裝dhcp服務 yum install -y dhcp 2. host1 vi /etc/dhcp/dhcpd.failover failover peer "dhcpfailover" { primary; address host1; port 647; peer address hos 阅读全文
posted @ 2019-12-27 15:32 楚阿旗 阅读(597) 评论(0) 推荐(0) 编辑

摘要:yum install bind bind-utils bind-devel bind-chroot [root@nw-centos-dns-01 ~]# rpm -qa | grep bind bind-license-9.11.4-9.P2.el7.noarch bind-export-libs 阅读全文
posted @ 2019-12-27 15:10 楚阿旗 阅读(240) 评论(0) 推荐(0) 编辑

摘要:1. 下載python3的原碼 //安裝依賴包 yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel 阅读全文
posted @ 2019-12-21 08:43 楚阿旗 阅读(210) 评论(0) 推荐(0) 编辑

摘要:1. 安裝DB並啟用 yum install -y mariadb* systemctl start mariadb systemctl enable mariadb 2. 設定並創建zabbix_proxy資料庫,並提供存取權限 mysql mysql> create database zabbi 阅读全文
posted @ 2019-12-11 09:25 楚阿旗 阅读(494) 评论(0) 推荐(0) 编辑

摘要:1. 關閉selinuxsed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config 2. 重啟電腦reboot 3. 更改防火牆設定firewall-cmd --permanent --add-port=10050/tcpf 阅读全文
posted @ 2019-12-09 20:51 楚阿旗 阅读(217) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示