mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 02:31:31 +08:00
Update docs and sort content
This commit is contained in:
34
src/content/note/2024-11-30.md
Normal file
34
src/content/note/2024-11-30.md
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
title: 2024-11-30 星期六
|
||||
date: 2024-11-30
|
||||
day_of_week: 星期六
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 日记
|
||||
description: >-
|
||||
为了更快地启动 Visual Studio Code(VSCode)extention,先按下 Ctrl+Shift+P或Cmd+Shift+P进入
|
||||
Command Pallete。然后输入“Startup Performance”并选择相关选项,完成后记得激活功能以保持其设置。
|
||||
如果存在占用特定端口的程序,请使用命令“lsof -i :<PORT>”识别端口对应的进程ID(PID),再使用命令“kill -9
|
||||
<PID>”终止该进程。也可以使用更方便的方式“kill -9 $(lsof -t -i :<PORT>)”,即直接杀死占用端口的进程。
|
||||
slug: diary-2024-11-30
|
||||
published: true
|
||||
toAstro: true
|
||||
category: 日记
|
||||
date_created: 2025-01-04T11:34:08+08:00
|
||||
date_modified: 2025-01-22T13:39:24+08:00
|
||||
---
|
||||
|
||||
vscode extention 启动时间
|
||||
|
||||
按下 Ctrl+Shift+P(Windows/Linux)或 Cmd+Shift+P(macOS),输入 “Startup Performance” 并选择该选项。 关注:Finish Activate
|
||||
|
||||
kill 端口为 x 的进程
|
||||
|
||||
```
|
||||
lsof -i :<PORT>
|
||||
kill -9 <PID>
|
||||
```
|
||||
|
||||
```
|
||||
kill -9 $(lsof -t -i :<PORT>)
|
||||
```
|
Reference in New Issue
Block a user