惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
G
Google Developers Blog
H
Help Net Security
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
D
Docker
Hugging Face - Blog
Hugging Face - Blog
I
InfoQ
博客园 - 司徒正美
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence

北海轻歌

唠叨 - 2026-05-06 11:49 唠叨 - 2026-04-28 11:20 春节记 一次招待之旅 六月小记 唠叨 - 2025-06-15 22:22 唠叨 - 2025-06-14 23:30 唠叨 - 2025-06-13 16:55 唠叨 - 2025-06-02 23:18 唠叨 - 2025-06-02 23:13 唠叨 - 2025-06-02 23:01 唠叨 - 2025-05-20 23:13 唠叨 - 2025-05-01 22:57 唠叨 - 2025-04-22 00:02 唠叨 - 2025-04-05 16:40 唠叨 - 2025-04-02 11:45 唠叨 - 2025-03-12 22:09 唠叨 - 2025-03-06 20:17 唠叨 - 2025-03-05 23:17 唠叨 - 2025-02-19 15:58 闲来无事,搞搞NAS 唠叨 - 2025-02-05 15:10 唠叨 - 2025-02-01 13:24 唠叨 - 2025-01-20 16:54 唠叨 - 2025-01-19 17:28 唠叨 - 2025-01-15 11:20 唠叨 - 2024-12-28 22:53 唠叨 - 2024-12-28 22:16 唠叨 - 2024-12-22 23:59 唠叨 - 2024-12-22 23:33
博客搬家记
2019-11-28 · via 北海轻歌

博客搬家记

自从 Typecho 换到hugo后就将博客放到 腾讯云开发者平台也就是 cloudstudio ,很方便,在线写作、编译。前段时间看到群里有人说个人版 cloud studio 估计到年底要下线了,做个保障,将数据转移到了新上线的 cloud studio,其实也就是从CODING个人版转到了团队版。团队版的Cloud Studio进去以后需要自己安装需要用的工具,记录一下。

安装工具及Hugo

安装Hugo需要用到 wget命令,所以需要先安装wget,安装wget又需要curl,所以还得先安装 curl 。这是我百度以后研究出来的一种方法。

首先安装wget

1  apt-get update  
2  apt-get install wget  
3  wget --version  

再安装 curl

1 sudo apt install curl
要验证是否已安装curl,请在终端中键入curl
2 curl

接下来 安装Hugo

1、更新你的系统apt索引并安装Hugo:

sudo apt-get update $ sudo apt-get install hugo

2、从 github hugo页面下载最新版本,当前版本是v0.54.0,选择与你的CPU架构匹配的版本:

wget https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.deb

3、然后使用以下命令安装包:

$ sudo dpkg -i hugo_0.54.0_Linux-64bit.deb

Selecting previously unselected package hugo.

(Reading database  187292 files and directories currently installed.)

Preparing to unpack hugo_0.54.0_Linux-64bit.deb 

Unpacking hugo (0.54.0) 

Setting up hugo (0.54.0)  

如果安装成功,你应该能够使用hugo命令:

Git博客数据

因为我每次更新完文章都会将博客备份到github中,所以在安装好hugo以后,直接将博客备份git下来就可以了。

琛苏
琛苏

完美生成,相比较个人版的Cloud Studio有个方便之处就是可以自动部署到静态网站。而团队版需要手动操作

1、 cd public

2、git init

3、git add -A

4、git commit -m 'deploy'

5、git push -f [email protected]:chen92/chen92.git master

对象计数中: 504, 完成.
Delta compression using up to 8 threads.
压缩对象中: 100% (377/377), 完成.
写入对象中: 100% (504/504), 1.84 MiB | 12.20 MiB/s, 完成.
Total 504 (delta 184), reused 0 (delta 0)
remote: Resolving deltas: 100% (184/184), done.
To e.coding.net:chen92/chen92.git

 + `9c28aee...fa22f68 master -> master (forced update)

然后部署到网页。

琛苏
琛苏