1.解压nginx包
2.安装pcre
如果安装出现在下面的错误是缺少编译环境。安装编译源码所需的工具和库
3.安装cmake
4.编译
5.启动服务
6.如果其它机器无法访问,解决方法如下:
访问后如果是403就把conf的内容变为
user nobody 变为 user root;
Java程序员
缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: true
raw: false
content: false
slug: false
updated: false
comments: true
link: false
permalink: false
excerpt: false
categories: false
tags: true