Windows命令netsh设置IP和DNS
- 今天去王总新搬的公司混饭吃,新办公地网络受公司要求必须要指定内部用的 IP 和 DNS.有个同事的电脑 Windows7网络设置一直闪退,没法界面设置 IP 和 DNS,后来我写了个简单的bat批处理用命令 netsh 来设置 IP 和 DNS 的. bat批处理代码如下:(可以更改相应 IP 地址适用于你自己)
1 | @echo off |
1 | @echo off |
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true