摘要:
1、 被监控服务器上安装zabbix-agentyum install zabbix-agentsystemctl start zabbix-agentsystemctl enabel zabbix-agent 2、编写脚本 vim /tmp/tcp_status.sh #!/bin/bash tc 阅读全文
摘要:
dhcp集群搭建一、两台centos7安装dhcp服务,并设定开机自启yum install dhcp -ysystemctl enable dhcpd二、编辑dhcpd.conf配置文件1、primary服务器:vim /etc/dhcp/dhcpd.conf ddns-update-style 阅读全文
摘要:
aaa accounting-scheme acc_ningdun accounting-mode radius accounting realtime 3 authentication-scheme auth_ningdun authentication-mode radius mac-acces 阅读全文
摘要:
两台服务为例,两台同时安装mariadb,要求版本一致,两台yum install mariadb* -y ,初始化mysql_secure_installation主服务器1、vim /etc/my.conf[mysqld]log-bin=mysql-bin 开启二进制日志server-id=1 阅读全文
摘要:
一、安装docker-composecurl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker 阅读全文
摘要:
一、下载相关的镜像1、docker pull zabbix/zabbix-server-mysql:centos-latest zabbix-server软件2、docker pull mysql:latest 数据库(尽量用最新的数据库)3、docker pull lh438369/zabbix- 阅读全文
摘要:
#!/usr/bin/python3 # -*- coding: utf-8 -*- import json import ssl from ldap3 import ALL_ATTRIBUTES, ALL from ldap3 import Connection, NTLM, Server, Se 阅读全文
摘要:
DHCPv6中继配置 1、R1配置 ipv6 dhcpv6 pool pool1 address prefix 2002:1:1:1::/64 excluded-address 2002:1:1:1::1 to 2002:1:1:1::10 dns-server 3003:1:1:1::1 dns- 阅读全文
摘要:
docker镜像制作1、基于容器b1制作镜像docker commit -a "huge<393151145@qq.com>" -c 'CMD ["/bin/httpd","-f","-h","/data/html"]' -p b1 lh438369/httpd:v0.1 -p:docker容器名为 阅读全文
摘要:
#!/bin/sh #chkconfig: 2345 85 15 # description: nginx is a World Wide Web server. It is used to serve function start(){ netstat -tunlp | grep nginx > 阅读全文