Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fun binary
note
提交
4e92df59
N
note
项目概览
fun binary
/
note
通知
1
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
note
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4e92df59
编写于
5月 10, 2021
作者:
fun binary
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
11
上级
850814e4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
165 addition
and
2 deletion
+165
-2
开源软件/数据库/Redis/Redis学习环境搭建
开源软件/数据库/Redis/Redis学习环境搭建
+91
-0
待处理.md
待处理.md
+74
-2
未找到文件。
开源软件/数据库/Redis/Redis学习环境搭建
0 → 100644
浏览文件 @
4e92df59
# 调试步骤
### 1. 安装必要的软件
1. [VS Code](https://code.visualstudio.com/)
- C/C++
- Remote-WSL
2. [WSL Ubuntu](https://docs.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-vscode)
- apt-get install gcc gdb make -y
3. [Redis 6.2.3源码](https://download.redis.io/releases/redis-6.2.3.tar.gz)
### 2. 编译Redis
``` shell
cd redis-6.2.3 && make -j4
```
### 3. 配置VS Code调试环境
按`F5`然后出现选择调试选项,然后选择C++(GDB/LLDB)
然后在左边找到`.vscode`下的`launch.json`,将`program`修改为`${workspaceFolder}/src/redis-server`
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/redis-server",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
```
### 4. 配置编译选项
在`.vscode`目录下新建`tasks.json`
```json
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"args": [
"CFLAGS=\"-g -O0\""
]
}
]
}
```
修改launch.json->preLaunchTask: Build使得tasks.json可以被加载
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/redis-server",
"args": ["redis.conf"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
```
待处理.md
浏览文件 @
4e92df59
...
@@ -45,4 +45,76 @@ Qt多线程编程:https://blog.csdn.net/libaineu2004/article/details/105866698
...
@@ -45,4 +45,76 @@ Qt多线程编程:https://blog.csdn.net/libaineu2004/article/details/105866698
整理libusb、libudev、zeromq、ZLMToolkit、ZLMediaKit、Drogon源码分析
整理libusb、libudev、zeromq、ZLMToolkit、ZLMediaKit、Drogon源码分析
ffmpeg、SRS、ZLMediakit
ffmpeg、SRS、ZLMediakit
\ No newline at end of file
1.
Go语言爱好者周刊:第 94 期 — 这道题目别不会
https://mp.weixin.qq.com/s/_La7pqzLreCl50-9ASoBkQ
2.
goproxy 源码分析
https://mp.weixin.qq.com/s/qVIzxuu8yZv7arfr2E8Cmg
3.
使用 Loki 收集 Traefik 日志
https://mp.weixin.qq.com/s/L-dGf4dwr7b8hz4IM0qg8A
4.
谈谈对K8S CNI、CRI和CSI插件的理解
https://mp.weixin.qq.com/s/vLfWUiZuap9RWjFuPfqMEg
5.
nocode 和 lowcode
https://mp.weixin.qq.com/s/gvCQqNFaGSWCJv9XHMl94A
6.
Go 每日一库之 bytebufferpool
https://mp.weixin.qq.com/s/SVqpZubE_X4W8uAwmNV79w
7.
面试官:Go 结构体是否可以比较,为什么?
https://mp.weixin.qq.com/s/S2nVZ-xmHqsTOyQp7jWWSg
8.
五一假期的股文来咯
https://mp.weixin.qq.com/s/oTqguz5KwHVky-3cXt8hLQ
9.
Go 实现各类限流
https://juejin.cn/post/6959436201443426311
10.
如何使用 Github actions 测试 Go 代码
https://gfgfddgleb.medium.com/how-to-test-your-go-code-with-github-actions-f15881d46089
11.
Go 机器学习
https://towardsdatascience.com/golang-for-machine-learning-bd4bb84594ee
12.
为什么 Go 接口比 Java 和 C# 更好
https://khanakia.medium.com/why-go-interface-is-better-than-java-and-c-ece85aef0123
13.
Go JSON 终极指南
https://qvault.io/golang/json-golang/
14.
当你去获取时,会发生什么–近距离观察Go模块的内部结构
https://tobyokewole.medium.com/what-happens-when-you-go-get-a-closer-look-at-the-internals-of-go-modules-347780643292
15.
go中如何实现枚举
https://marcofranssen.nl/how-to-do-enums-in-go
16.
如何在ipfs上建立单页web站点
https://docs.ipfs.io/how-to/websites-on-ipfs/single-page-website/
17.
分析开源Helm chart的安全态势的主要趋势
https://bridgecrew.io/blog/open-source-helm-security-research-part-2/
18.
通过kubernetes CSI获取HashiCorp Vault Secrets
https://www.hashicorp.com/blog/retrieve-hashicorp-vault-secrets-with-kubernetes-csi
19.
使用gitlab operator在k8s和openshift上部署gitlab
https://about.gitlab.com/releases/2021/04/22/gitlab-13-11-released/
20.
kubernetes手册
https://www.freecodecamp.org/news/the-kubernetes-handbook/
21.
经典旧文:使用Go实现Clean Architecture
https://eminetto.medium.com/clean-architecture-using-golang-b63587aa5e3f
22.
WebAssembly不仅仅是一个JavaScript的替代品
https://thenewstack.io/kubecon-eu-why-webassembly-is-more-than-a-javascript-replacement/
23.
运维ETCD的经验教训
https://docs.google.com/presentation/d/1uOpawkCoqPQuxD5MuEhXeCrJV1Nw9fopUBq2IRTvwcI/edit#slide=id.gc963048e26_0_73
24.
对Rust的第二印象
https://deepu.tech/my-second-impression-of-rust/
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录