-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (120 loc) · 31.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2"/><meta name="theme-color" content="#222"/><meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1"/><meta name="renderer" content="webkit"/><link rel="icon" type="image/ico" sizes="32x32" href="/assets/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"/><link rel="alternate" href="/rss.xml" title="NightFury" type="application/rss+xml"><link rel="alternate" href="/atom.xml" title="NightFury" type="application/atom+xml"><link rel="alternate" type="application/json" title="NightFury" href="https://nightfury.top/feed.json"/><link rel="preconnect" href="https://mirrors.sustech.edu.cn/cdnjs"/><link rel="preconnect" href="https://cdnjs.snrat.com"/><link rel="preconnect" href="https://s4.zstatic.net"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Mulish:400,400italic,700,700italic%7CFredericka%20the%20Great:400,400italic,700,700italic%7CNoto%20Serif%20JP:400,400italic,700,700italic%7CNoto%20Serif%20SC:400,400italic,700,700italic%7CInconsolata:400,400italic,700,700italic&display=swap&subset=latin,latin-ext" media="none" onload="this.media='all'"><link rel="stylesheet" href="/css/app.css?v=0.4.17"><link rel="modulepreload" href="/js/chunk-EWPEWLLZ.js"></link><link rel="modulepreload" href="/js/chunk-FJIYN5II.js"></link><link rel="modulepreload" href="/js/chunk-M4X3XC6X.js"></link><link rel="modulepreload" href="/js/chunk-RPQFIKYV.js"></link><link rel="modulepreload" href="/js/chunk-U5IFKWJQ.js"></link><link rel="modulepreload" href="/js/chunk-WIQECBEN.js"></link><link rel="modulepreload" href="/js/comments-FXTJC3OS.js"></link><link rel="modulepreload" href="/js/copy-tex-SNESBJPB.js"></link><link rel="modulepreload" href="/js/index.esm-KW346CBT.js"></link><link rel="modulepreload" href="/js/post-S7HGICWK.js"></link><link rel="modulepreload" href="/js/quicklink-5D6BABLD.js"></link><link rel="modulepreload" href="/js/search-IUFG55LJ.js"></link><link rel="modulepreload" href="/js/siteInit.js"></link><link rel="modulepreload" href="/js/waline-BZCX4Z63.js"></link><link rel="stylesheet" href="/css/comments-3DIOODFJ.css" media="none" onload="this.media='all'"></link><link rel="stylesheet" href="/css/siteInit.css" media="none" onload="this.media='all'"></link><link rel="stylesheet" href="/css/waline-RZIHPP7A.css" media="none" onload="this.media='all'"></link><link rel="preload" href="https://nightfury.top/bing.php?523674" as="image" fetchpriority="high"><link rel="preload" href="https://nightfury.top/bing.php?991109" as="image" fetchpriority="high"><link rel="preload" href="https://nightfury.top/bing.php?73993" as="image" fetchpriority="high"><link rel="preload" href="https://nightfury.top/bing.php?271296" as="image" fetchpriority="high"><link rel="preload" href="https://nightfury.top/bing.php?312472" as="image" fetchpriority="high"><link rel="preload" href="https://nightfury.top/bing.php?959675" as="image" fetchpriority="high"><meta name="keywords" content="Hardware Accelerator, Software Configuration"/><meta name="description" content="个人笔记 & 踩坑记录 & 各种收藏"/><link rel="canonical" href="https://nightfury.top/"><title>NightFury's Blog = NightFury = 行动胜于空想</title><meta name="generator" content="Hexo 7.3.0"></head><body itemscope itemtype="http://schema.org/WebPage"><div id="loading"><div class="cat"><div class="body"></div><div class="head"><div class="face"></div></div><div class="foot"><div class="tummy-end"></div><div class="bottom"></div><div class="legs left"></div><div class="legs right"></div></div><div class="paw"><div class="hands left"></div><div class="hands right"></div></div></div></div><div id="container"><header id="header" itemscope itemtype="http://schema.org/WPHeader"><div class="inner"><div id="brand"><div class="pjax"><a class="logo" href="/" rel="start"><p class="artboard">NightFury's Blog</p><h1 class="title" itemprop="name headline">NightFury</h1></a><p class="meta" itemprop="description">= 行动胜于空想 =</p></div></div><nav id="nav"><div class="inner"><div class="toggle"><div class="lines" aria-label="切换导航栏"><span class="line"></span><span class="line"></span><span class="line"></span></div></div><ul class="menu"><li class="item title"><a href="/" rel="start">NightFury's Blog</a></li></ul><ul class="right" id="rightNav"><li class="item theme"><i class="ic i-sun"></i></li><li class="item search"><i class="ic i-search"></i></li></ul></div></nav></div><div class="pjax" id="imgs"><ul><li class="item" style="background-image: url("https://nightfury.top/bing.php?523674");"></li><li class="item" style="background-image: url("https://nightfury.top/bing.php?991109");"></li><li class="item" style="background-image: url("https://nightfury.top/bing.php?73993");"></li><li class="item" style="background-image: url("https://nightfury.top/bing.php?271296");"></li><li class="item" style="background-image: url("https://nightfury.top/bing.php?312472");"></li><li class="item" style="background-image: url("https://nightfury.top/bing.php?959675");"></li></ul></div></header><div id="waves"><svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto"><defs><path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z"></path></defs><g class="parallax"><use xlink:href="#gentle-wave" x="48" y="0"></use><use xlink:href="#gentle-wave" x="48" y="3"></use><use xlink:href="#gentle-wave" x="48" y="5"></use><use xlink:href="#gentle-wave" x="48" y="7"></use></g></svg></div><main><div class="inner"><div class="pjax" id="main"><div class="index wrap"><h2 class="divider">文章列表</h2><div class="segments posts"><article class="item"><div class="cover"><a href="/2024/07/05/%E5%88%A9%E7%94%A8Acme%E8%84%9A%E6%9C%AC%E8%87%AA%E5%8A%A8%E7%94%B3%E8%AF%B7SSL%E8%AF%81%E4%B9%A6/" itemprop="url" title="利用Acme脚本自动申请SSL证书"><img loading="lazy" decoding="async" data-src="/assets/cover/LetsEncrypt.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2024-07-05 16:09:11"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2024-07-05T16:09:11+08:00">2024-07-05</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>4k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>4 分钟</span></span></div><h3><a href="/2024/07/05/%E5%88%A9%E7%94%A8Acme%E8%84%9A%E6%9C%AC%E8%87%AA%E5%8A%A8%E7%94%B3%E8%AF%B7SSL%E8%AF%81%E4%B9%A6/" itemprop="url" title="利用Acme脚本自动申请SSL证书">利用Acme脚本自动申请SSL证书</a></h3><div class="excerpt">在这篇博客中,我们将介绍如何在Linux服务器上使用 acme.sh 申请Let’s Encrypt证书,并配置自动续签任务。以下脚本将自动执行这些步骤,确保你的服务器能够使用免费的 SSL 证书并自动续签,完整代码开源在 szNightFury‘s Github。
前提条件
确保你有一个域名,并且能够修改其 DNS 记录。
确保你的服务器上已经安装了 Nginx(或其他Web服务器)。
脚本详解1. 确保脚本以root身份运行为了执行需要管理员权限的操作,脚本需要以root身份运行。如果当前用户不是root,脚本将退出并提示用户以root身份重新运行。
if [ "$EUID&q</div><div class="meta footer"><span><a href="/categories/Configuration/" itemprop="url" title="Configuration"><i class="ic i-flag"></i>Configuration</a></span></div><a href="/2024/07/05/%E5%88%A9%E7%94%A8Acme%E8%84%9A%E6%9C%AC%E8%87%AA%E5%8A%A8%E7%94%B3%E8%AF%B7SSL%E8%AF%81%E4%B9%A6/" class="btn" itemprop="url" title="利用Acme脚本自动申请SSL证书">more...</a></div></article><article class="item"><div class="cover"><a href="/2024/07/05/Debian12%E9%83%A8%E7%BD%B2Cloudreve%E4%BA%91%E7%9B%98/" itemprop="url" title="Debian12部署Cloudreve云盘"><img loading="lazy" decoding="async" data-src="/assets/cover/Cloudreve.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2024-07-05 14:38:20"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2024-07-05T14:38:20+08:00">2024-07-05</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>3.6k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>3 分钟</span></span></div><h3><a href="/2024/07/05/Debian12%E9%83%A8%E7%BD%B2Cloudreve%E4%BA%91%E7%9B%98/" itemprop="url" title="Debian12部署Cloudreve云盘">Debian12部署Cloudreve云盘</a></h3><div class="excerpt">Cloudreve 是一款开源的网盘系统,支持多种存储后端,可以方便地搭建私人网盘。
VPS 环境:Debian 12
CloudReve 版本:3.8.3
步骤一:更新系统首先,确保你的系统是最新的。运行以下命令更新软件包列表并升级所有已安装的软件包:
sudo apt update && sudo apt upgrade -y
步骤二:下载 Cloudreve访问 Cloudreve的GitHub页面 以获取最新版本的 Cloudreve。或者,你可以使用 curl 命令直接下载 3.8.3 版本(截止博客发表前的最新版本):
curl -L -o cloudreve.z</div><div class="meta footer"><span><a href="/categories/Configuration/" itemprop="url" title="Configuration"><i class="ic i-flag"></i>Configuration</a></span></div><a href="/2024/07/05/Debian12%E9%83%A8%E7%BD%B2Cloudreve%E4%BA%91%E7%9B%98/" class="btn" itemprop="url" title="Debian12部署Cloudreve云盘">more...</a></div></article><article class="item"><div class="cover"><a href="/2024/07/04/Debian12%E7%B3%BB%E7%BB%9FHexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" itemprop="url" title="Debian12系统Hexo部署到VPS"><img loading="lazy" decoding="async" data-src="/assets/cover/Github.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2024-07-04 12:34:08"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2024-07-04T12:34:08+08:00">2024-07-04</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>7.7k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>7 分钟</span></span></div><h3><a href="/2024/07/04/Debian12%E7%B3%BB%E7%BB%9FHexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" itemprop="url" title="Debian12系统Hexo部署到VPS">Debian12系统Hexo部署到VPS</a></h3><div class="excerpt">网上大部分教程都是将 Hexo 部署到 GitHub Pages 上面,本文主要介绍如何部署到 VPS。
VPS 环境:Debian 12
准备工作网上流传的武功秘籍分为两种:
将 Hexo 项目上传到 VPS 上面后执行 hexo server,之后配置 Nginx 反向代理,让域名指向 http://localhost:4000。
将 Hexo 在本地通过 hexo generate 生成静态文件,在通过 hexo deploy 部署到 VPS 上面,使用 Nginx 直接做 Web 服务器。
相比第二种方式,第一种每次写博客与更新博客时候的操作会很繁琐。所以我们使用</div><div class="meta footer"><span><a href="/categories/Configuration/" itemprop="url" title="Configuration"><i class="ic i-flag"></i>Configuration</a></span></div><a href="/2024/07/04/Debian12%E7%B3%BB%E7%BB%9FHexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" class="btn" itemprop="url" title="Debian12系统Hexo部署到VPS">more...</a></div></article><article class="item"><div class="cover"><a href="/2024/07/04/Debian12%E9%85%8D%E7%BD%AENginx1.22%E4%B8%8EPhp8.2/" itemprop="url" title="Debian12配置Nginx1.22与Php8.2"><img loading="lazy" decoding="async" data-src="/assets/cover/Debian12.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2024-07-04 11:59:23"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2024-07-04T11:59:23+08:00">2024-07-04</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>1.6k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>1 分钟</span></span></div><h3><a href="/2024/07/04/Debian12%E9%85%8D%E7%BD%AENginx1.22%E4%B8%8EPhp8.2/" itemprop="url" title="Debian12配置Nginx1.22与Php8.2">Debian12配置Nginx1.22与Php8.2</a></h3><div class="excerpt">实验环境
操作系统:Debian 12
Nginx:1.22.1
Php:8.2.20
Php-fpm:php8.2-fpm
实验步骤安装程序包与依赖# 更新软件包列表
apt update
# 安装程序包
apt install nginx
apt install php php-fpm php-xml php-json php-curl php-mbstring
配置Nginx# 查看 php-fpm 监听配置
nano /etc/php/8.2/fpm/pool.d/www.conf
# 41行取消注释:
listen &</div><div class="meta footer"><span><a href="/categories/Configuration/" itemprop="url" title="Configuration"><i class="ic i-flag"></i>Configuration</a></span></div><a href="/2024/07/04/Debian12%E9%85%8D%E7%BD%AENginx1.22%E4%B8%8EPhp8.2/" class="btn" itemprop="url" title="Debian12配置Nginx1.22与Php8.2">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/09/11/table/" itemprop="url" title="table"><img loading="lazy" decoding="async" data-src="/assets/cover/IEEE.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-09-11 10:46:06"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-09-11T10:46:06+08:00">2023-09-11</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>7.8k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>7 分钟</span></span></div><h3><a href="/2023/09/11/table/" itemprop="url" title="table">table</a></h3><div class="excerpt">
refill
0
0
0
1
1
1
0
0
0
1
1
1
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
refillPush
push
push
push
push
push
push
refillOrPush
refillOrPush
refillOrPush
refillOrPush
</div><div class="meta footer"><span><a href="/categories/Paper/Algorithm/" itemprop="url" title="Algorithm"><i class="ic i-flag"></i>Algorithm</a></span></div><a href="/2023/09/11/table/" class="btn" itemprop="url" title="table">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/09/10/A-Low-Power-and-Low-Latency-FPGA-Based-Spiking-Neural-Network-Accelerator/" itemprop="url" title="A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator"><img loading="lazy" decoding="async" data-src="/assets/cover/IEEE.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-09-10 15:36:45"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-09-10T15:36:45+08:00">2023-09-10</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>2.1k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>2 分钟</span></span></div><h3><a href="/2023/09/10/A-Low-Power-and-Low-Latency-FPGA-Based-Spiking-Neural-Network-Accelerator/" itemprop="url" title="A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator">A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator</a></h3><div class="excerpt">A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator摘要翻译自 ChatGPT:
脉冲神经网络(SNNs),被称为神经网络的第三代,因其生物合理性和类似大脑的特征而著名。最近的努力进一步展示了 SNN 在高速推断方面的潜力,通过设计具有时间或空间维度并行性的加速器。然而,由于硬件资源的限制,加速器设计必须利用片外内存来存储许多中间数据,这导致了高功耗和长延迟。本文侧重于层间数据流以提高算术效率。基于脉冲的离散特性,我们设计了一个卷积池化(CONVP)单元,将卷积层和池化层的处理合并,以减少延迟和资源</div><div class="meta footer"><span><a href="/categories/Paper/Algorithm/" itemprop="url" title="Algorithm"><i class="ic i-flag"></i>Algorithm</a></span></div><a href="/2023/09/10/A-Low-Power-and-Low-Latency-FPGA-Based-Spiking-Neural-Network-Accelerator/" class="btn" itemprop="url" title="A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/09/07/Efficient-Hardware-Acceleration-of-Sparsely-Active-Convolutional-Spiking-Neural-Networks/" itemprop="url" title="Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks"><img loading="lazy" decoding="async" data-src="/assets/cover/IEEE.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-09-07 20:46:18"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-09-07T20:46:18+08:00">2023-09-07</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>4.2k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>4 分钟</span></span></div><h3><a href="/2023/09/07/Efficient-Hardware-Acceleration-of-Sparsely-Active-Convolutional-Spiking-Neural-Networks/" itemprop="url" title="Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks">Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks</a></h3><div class="excerpt">Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks摘要翻译自 ChatGPT:
脉冲神经网络(SNNs)以事件驱动方式进行计算,以实现比标准神经网络更高效的计算。在 SNNs 中,神经元的输出不是编码为实值激活,而是编码为二进制脉冲序列。使用 SNNs 而不是传统神经网络的动机根植于脉冲处理的特殊计算方面,尤其是高度稀疏的脉冲。已经建立良好的卷积神经网络(CNNs)实现具有大型的处理元素(PEs)空间阵列,但在面对激活稀疏性时,它们的利用率仍然很低。我们提出了一种针对</div><div class="meta footer"><span><a href="/categories/Paper/Algorithm/" itemprop="url" title="Algorithm"><i class="ic i-flag"></i>Algorithm</a></span></div><a href="/2023/09/07/Efficient-Hardware-Acceleration-of-Sparsely-Active-Convolutional-Spiking-Neural-Networks/" class="btn" itemprop="url" title="Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/08/18/StreamFifo/" itemprop="url" title="StreamFifo"><img loading="lazy" decoding="async" data-src="/assets/cover/SpinalHDL.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-08-18 17:38:12"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-08-18T17:38:12+08:00">2023-08-18</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>11k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>10 分钟</span></span></div><h3><a href="/2023/08/18/StreamFifo/" itemprop="url" title="StreamFifo">StreamFifo</a></h3><div class="excerpt">StreamFifoimport spinal.core._
import spinal.lib._
import scala.language.postfixOps
trait StreamReuseFifoInterface[T <: Data]{
def push : Stream[T]
def pop : Stream[T]
def pushOccupancy : UInt
def popOccupancy : UInt
}
object StreamReuseFifo{
def ap</div><div class="meta footer"><span><a href="/categories/Technique/Draft/" itemprop="url" title="Draft"><i class="ic i-flag"></i>Draft</a></span></div><a href="/2023/08/18/StreamFifo/" class="btn" itemprop="url" title="StreamFifo">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/08/15/Memory%20Layout%20Analysis/" itemprop="url" title="Memory Layout Analysis"><img loading="lazy" decoding="async" data-src="/assets/cover/SpinalHDL.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-08-15 10:38:12"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-08-15T10:38:12+08:00">2023-08-15</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>291</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>1 分钟</span></span></div><h3><a href="/2023/08/15/Memory%20Layout%20Analysis/" itemprop="url" title="Memory Layout Analysis">Memory Layout Analysis</a></h3><div class="excerpt">Memory Layout AnalysisVoltage Membrane$$Total=Co \times H_v \times W_v$$$$Burst=H_k$$
Kernel Weight$$Total=Co \times Ci \times H_k \times W_k$$$$Burst=Ci \times S \times H_k \times W_k$$
Mixed$$Parameter\ Unit =\frac{H_v \times W_v}{H_k \times W_k} + Ci$$
</div><div class="meta footer"><span><a href="/categories/Algorithm/Draft/" itemprop="url" title="Draft"><i class="ic i-flag"></i>Draft</a></span></div><a href="/2023/08/15/Memory%20Layout%20Analysis/" class="btn" itemprop="url" title="Memory Layout Analysis">more...</a></div></article><article class="item"><div class="cover"><a href="/2023/08/14/Hexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" itemprop="url" title="Hexo部署到VPS"><img loading="lazy" decoding="async" data-src="/assets/cover/Github.webp" alt="article cover"></a></div><div class="info"><div class="meta"><span class="item" title="创建时间:2023-08-14 15:17:08"><span class="icon"><i class="ic i-calendar"></i></span><time itemprop="dateCreated datePublished" datetime="2023-08-14T15:17:08+08:00">2023-08-14</time></span><span class="item" title="本文字数"><span class="icon"><i class="ic i-pen"></i></span><span>5.9k</span><span class="text">字</span></span><span class="item" title="阅读时长"><span class="icon"><i class="ic i-clock"></i></span><span>5 分钟</span></span></div><h3><a href="/2023/08/14/Hexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" itemprop="url" title="Hexo部署到VPS">Hexo部署到VPS</a></h3><div class="excerpt">网上大部分教程都是将 Hexo 部署到 GitHub Pages 上面,本文主要介绍如何部署到 VPS。
VPS 环境:Ubuntu 18.04。
准备工作网上流传的武功秘籍分为两种:
将 Hexo 项目上传到 VPS 上面后执行 hexo server,之后配置 Nginx 反向代理,让域名指向 http://localhost:4000。
将 Hexo 在本地通过 hexo generate 生成静态文件,在通过 hexo deploy 部署到 VPS 上面,使用 Nginx 直接做 Web 服务器。
相比第二种方式,第一种每次写博客与更新博客时候的操作会很繁琐。所以</div><div class="meta footer"><span><a href="/categories/Configuration/" itemprop="url" title="Configuration"><i class="ic i-flag"></i>Configuration</a></span></div><a href="/2023/08/14/Hexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/" class="btn" itemprop="url" title="Hexo部署到VPS">more...</a></div></article></div></div><nav class="pagination"><div class="inner"><span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/"><i class="ic i-angle-right" aria-label="下一页"></i></a></div></nav></div><div id="sidebar"><div class="inner"><div class="panels"><div class="inner"><div class="contents panel pjax" data-title="文章目录"></div><div class="related panel pjax" data-title="系列文章"></div><div class="overview panel" data-title="站点概览"><div class="author" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><img class="image" loading="lazy" decoding="async" itemprop="image" alt="NightFury" src="/assets/avatar.webp"/><p class="name" itemprop="name">NightFury</p><div class="description" itemprop="description">个人笔记 & 踩坑记录 & 各种收藏</div></div><nav class="state"><div class="item posts"><a href="/archives/"><span class="count">15</span><span class="name">文章</span></a></div><div class="item categories"><a href="/categories/"><span class="count">7</span><span class="name">分类</span></a></div><div class="item tags"><a href="/tags/"><span class="count">18</span><span class="name">标签</span></a></div></nav><div class="social"><a target="_blank" rel="noopener" href="https://github.com/szNightFury" class="item github" title="https://github.com/szNightFury"><i class="ic i-github"></i></a></div><div class="menu"><li class="item"><a href="/" rel="section"><i class="ic i-home"></i>首页</a></li><li class="item dropdown"><a href="#" onclick="return false;"><i class="ic i-feather"></i>文章</a><ul class="submenu"><li class="item"><a href="/archives/" rel="section"><i class="ic i-list-alt"></i>归档</a></li><li class="item"><a href="/categories/" rel="section"><i class="ic i-th"></i>分类</a></li><li class="item"><a href="/tags/" rel="section"><i class="ic i-tags"></i>标签</a></li></ul></li></div></div></div></div><ul id="quick"><li class="prev pjax"></li><li class="up"><i class="ic i-arrow-up"></i></li><li class="down"><i class="ic i-arrow-down"></i></li><li class="next pjax"><a href="/page/2/" rel="next" title="下一篇"><i class="ic i-chevron-right"></i></a></li><li class="percent"></li></ul></div></div><div class="dimmer"></div></div></main><footer id="footer"><div class="inner"><div class="widgets"><div class="rpost pjax"><h2>随机文章</h2><ul><li class="item"><div class="breadcrumb"><a href="/categories/Configuration/" title="分类于Configuration">Configuration</a></div><span><a href="/2024/07/04/Debian12%E9%85%8D%E7%BD%AENginx1.22%E4%B8%8EPhp8.2/">Debian12配置Nginx1.22与Php8.2</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Configuration/" title="分类于Configuration">Configuration</a></div><span><a href="/2023/08/14/Hexo%E9%83%A8%E7%BD%B2%E5%88%B0VPS/">Hexo部署到VPS</a></span></li><li class="item"><div class="breadcrumb"></div><span><a href="/2023/07/27/HelloWorld/">Hello World</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Paper/" title="分类于Paper">Paper</a><i class="ic i-angle-right"></i><a href="/categories/Paper/Algorithm/" title="分类于Algorithm">Algorithm</a></div><span><a href="/2023/09/07/Efficient-Hardware-Acceleration-of-Sparsely-Active-Convolutional-Spiking-Neural-Networks/">Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Configuration/" title="分类于Configuration">Configuration</a></div><span><a href="/2023/07/27/Php%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/">Php环境配置</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Configuration/" title="分类于Configuration">Configuration</a></div><span><a href="/2024/07/05/Debian12%E9%83%A8%E7%BD%B2Cloudreve%E4%BA%91%E7%9B%98/">Debian12部署Cloudreve云盘</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Paper/" title="分类于Paper">Paper</a><i class="ic i-angle-right"></i><a href="/categories/Paper/Algorithm/" title="分类于Algorithm">Algorithm</a></div><span><a href="/2023/09/11/table/">table</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Algorithm/" title="分类于Algorithm">Algorithm</a><i class="ic i-angle-right"></i><a href="/categories/Algorithm/Draft/" title="分类于Draft">Draft</a></div><span><a href="/2023/08/15/Memory%20Layout%20Analysis/">Memory Layout Analysis</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Paper/" title="分类于Paper">Paper</a><i class="ic i-angle-right"></i><a href="/categories/Paper/Algorithm/" title="分类于Algorithm">Algorithm</a></div><span><a href="/2023/09/10/A-Low-Power-and-Low-Latency-FPGA-Based-Spiking-Neural-Network-Accelerator/">A Low Power and Low Latency FPGA-Based Spiking Neural Network Accelerator</a></span></li><li class="item"><div class="breadcrumb"><a href="/categories/Configuration/" title="分类于Configuration">Configuration</a></div><span><a href="/2023/08/13/Sbt%E7%BC%93%E5%AD%98%E7%9B%AE%E5%BD%95%E9%85%8D%E7%BD%AE/">Sbt缓存目录配置</a></span></li></ul></div><div class="rpost pjax"><h2>最新评论</h2><ul class="leancloud-recent-comment" id="new-comment"></ul></div></div><div class="status"><div class="copyright">© 2023 -<span itemprop="copyrightYear">2025</span><span class="with-love"><i class="ic i-sakura rotate"></i></span><span class="author" itemprop="copyrightHolder">NightFury @ NightFury's Blog</span></div><div class="count"><span class="post-meta-item-icon"><i class="ic i-chart-area"></i></span><span title="站点总字数">57k 字</span><span class="post-meta-divider"> | </span><span class="post-meta-item-icon"><i class="ic i-coffee"></i></span><span title="站点阅读时长">51 分钟</span></div><div class="powered-by">基于 <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a> & Theme.<a target="_blank" rel="noopener" href="https://github.com/theme-shoka-x/hexo-theme-shokaX/">ShokaX</a></div></div></div></footer></div><script data-config type="text/javascript">var LOCAL = {
ispost: false,
path: ``,
favicon: {
show: `NightFury's Blog`,
hide: `NightFury's Blog`
},
search: {
placeholder: "文章搜索",
empty: "关于 「 ${query} 」,什么也没搜到",
stats: "${time} ms 内找到 ${hits} 条结果"
},
copy_tex: false,
katex: false,
mermaid: false,
audio: undefined,
fancybox: true,
nocopy: false,
outime: true,
template: `<div class="note warning"><p><span class="label warning">文章时效性提示</span><br>这是一篇发布于 {{publish}} 天前,最后一次更新在 {{updated}} 天前的文章,部分信息可能已经发生改变,请注意甄别。</p></div>`,
quiz: {
choice: `单选题`,
multiple: `多选题`,
true_false: `判断题`,
essay: `问答题`,
gap_fill: `填空题`,
mistake: `错题备注`
},
ignores: [
(uri) => uri.includes('#'),
(uri) => new RegExp(LOCAL.path + '$').test(uri),
[]
]
};
</script><script src="https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/pace/1.2.4/pace.min.js" integrity="sha384-k6YtvFUEIuEFBdrLKJ3YAUbBki333tj1CSUisai5Cswsg9wcLNaPzsTHDswp4Az8" crossorigin="anonymous" fetchpriority="high"></script><script src="https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous" fetchpriority="high"></script><script src="/js/siteInit.js?v=0.4.17" type="module" fetchpriority="high" defer></script></body></html>