mt3925's recent timeline updates
mt3925

mt3925

V2EX member #163383, joined on 2016-03-15 12:07:25 +08:00
mt3925's recent replies
@wudanyang 用协程也是要多进程部署的,单个进程只能用到一个 cpu ;单个进程里的协程占者 cpu 不放,不同进程还是会抢占啊
May 9, 2025
Replied to a topic by gibber 程序员 请教一个 wsl2 的网络配置问题
@gibber 启动容器的时候加上参数--add-host=my.win:x.x.x.x 就行,或者直接 ip 访问
Apr 28, 2025
Replied to a topic by gibber 程序员 请教一个 wsl2 的网络配置问题
@mt3925 说反了,my.win 原来是我自己写进去的,下面这段写到.zshrc 或者.bashrc
host_ip=$(ip route | grep default | awk '{print $3}')
sed -e "/my.win/d" 斜杠 etc 斜杠 hosts > 斜杠 tmp 斜杠 hosts
cat /tmp/hosts > 斜杠 etc 斜杠 hosts
echo "$host_ip my.win" >>斜杠 etc 斜杠 hosts
Apr 28, 2025
Replied to a topic by gibber 程序员 请教一个 wsl2 的网络配置问题
@mt3925 ,你可以看下 etc hosts ,直接用 my.win 就能访问到 windows ,或者 ip route | grep default | awk '{print $3}' 也可以获取到 windows 的 ip
Apr 28, 2025
Replied to a topic by gibber 程序员 请教一个 wsl2 的网络配置问题
我就是这么用的
Oct 25, 2024
Replied to a topic by lizhien Python 请教 uv + conda 使用
uv venv 后面可以自定义路径
Aug 3, 2018
Replied to a topic by XIVN1987 问与答 Xshell 中如何粘贴代码块
%cpaste
然后粘贴代码
Ctrl-D 结束
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5748 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 03:19 · PVG 11:19 · LAX 20:19 · JFK 23:19
♥ Do have faith in what you're doing.