07 2020 档案
摘要:for($i=101;$i -lt 111;$i=$i+1) { copy-item d:\hyper-v\vhd\111.vhdx d:\hyper-v\vhd\${i}.vhdx new-vm ${i}server set-vm -name ${i}server -AutomaticStopAc
阅读全文
摘要:使用docker安装非常方便,避免一步步的配置 ##查找包含zabbix proxy sqlite的镜像 docker search zabbix ##下载镜像(使用sqlite3比较轻便,也可以使用mysql的) docker pull docker.io/zabbix/zabbix-proxy-
阅读全文
摘要:fdisk /dev/sda p命令查看分区 n命令创建一个新分区 创建后为sda3 使用l命令查看所有分区类型,linux LVM的16进制代码为8e 使用t命令改变分区类型,写上8e(linux LVM) lvm 进入lvm命令行管理 使用partprobe重新读取分区表,或者重启机器。 par
阅读全文
摘要:很多情况下,你可能需要在Linux下屏蔽IP地址。比如,作为一个终端用户,你可能想要免受间谍软件或者IP追踪的困扰。或者当你在运行P2P软件时。你可能想要过滤反P2P活动的网络链接。如果你是一名系统管理员,你可能想要禁止垃圾IP地址访问你们的公司邮件服务器。或者你因一些原因想要禁止某些国家访问你的w
阅读全文
摘要:平时大家可能都是在官网进行测速 . 但是 linux 等服务器一般只能用命令行 . 以前常用的 cli 也是第三方的 . 现在官方自己提供了 cli 命令行工具 . 并且支持全平台 . 可以方便直观的进行测速了 . 官网地址 : https://www.speedtest.net/apps/cli
阅读全文
摘要:/interface bridge filter add action=accept chain=forward mac-protocol=arp add action=accept chain=forward mac-protocol=ip add action=accept chain=inpu
阅读全文
摘要:一、有哪五种模式网络: docker的网络模式大致可以分成五种类型: 默认是bridge模式网络 使用–net =bridge指定,默认网络驱动程序。当你的应用程序在需要通信的独立容器中运行时,通常会使用桥接网络。 host模式网络 使用–net =host指定,对于独立容器,删除容器和Docker
阅读全文
摘要:@echo off setlocal enabledelayedexpansion rem 首先创建名字为:pppoeswitch的交换机 set prestr=zjwz_3_ rem goto config del /f newvm.txt del /f /s /q d:\hyper-v\vhd\
阅读全文
摘要:使用Power Shell Set-VMNetworkAdapterVlan cmdlet,可以在虚拟NIC上打开中继模式.我认为没有相同的GUI选项. Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "100,101" -VMName "VmN
阅读全文
摘要:HTTPS是以安全为目标的HTTP通道,简单讲是HTTP的安全版。谷歌已经制定了一项长远的计划,它的最终目标是将所有通过HTTP协议呈现的网页标为“不安全”,对于站长来说,部署SSL证书来迁移到HTTPS是一个现实和重要的问题,那么,对于Apache系统来说,如何部署SSL证书实现HTTPS协议呢?
阅读全文
摘要:if you get the error PTY allocation request failed on channel 0 stdin: is not a tty and in your auth.log is written: error: openpty: No such file or d
阅读全文
摘要:#!/bin/bash yum -y install epel-release yum -y update yum -y remove firewalld yum -y install iptables iptables-services yum -y install gcc vim wget ma
阅读全文