Solve Error: Run 'hexo g', got 'Killed'

时间:2021-04-12 12:28:51   收藏:0   阅读:0

When you run hexo g on any web instances, like on AWS or Azure, you might get the following error:

(node:3568) ExperimentalWarning: The fs.promises API is experimental
INFO  Validating config
INFO  Start processing
Killed

Solution:

This might be caused by running out of memory, try to run the following command:

free -m 
dd if=/dev/zero of=/swap bs=4096 count=1572864
mkswap /swap
swapon /swap
echo "LABEL=SWAP-sda /swap swap swap defaults 0 0" >> /etc/fstab
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!