集群环境描述
外网机器
1
2
3ubuntu 16.04系统
外网ip 166.111.38.131
内网ip 192.168.11.222内网机器
1
2
3centos7.6系统
内网ip1 192.168.11.98
内网ip2 192.168.11.99
实现方法
在带外网的机器上设置iptables规则
1 | 1.设置iptables转发规则 |
在内网机器上将网关指向外网的内网ip 192.168.11.222
1 | ###test1机器 |
测试
1 | ###test1 |
探索永无止境
缺失模块。
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