WSL2常用指令

231 字
1 分钟
WSL2常用指令

安装

apt update && apt upgrade -y

ComfyUI

source py3/bin/activate
cd ComfyUI
python main.py
weget -c

sshx

curl -sSf <https://sshx.io/get> | sh

novnc

mkdir ngrok; cd ngrok; curl '<https://raw.githubusercontent.com/developeranaz/cloudshell-> novnc-automation/developeranaz-patch-1/vnc.sh' > vnc.sh; chmod +x vnc.sh; bash vnc.sh

ngrok

wget <https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz>
sudo tar xvzf ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin
ngrok config add-authtoken 2ednOtHtnTBVhGhOJQlMwF6Zl14_5LwkQoahuJboN8ZdSbf1S

科技lion一键脚本

curl -sS -O <https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh> && chmod +x kejilion.sh && ./kejilion.sh

科技lion一键脚本(国内)

curl -sS -O <https://kejilion.pro/kejilion.sh> && chmod +x kejilion.sh && ./kejilion.sh
apt update && apt upgrade -y&&apt install -y neofetch nano git unzip vim curl wget sudo tmate && neofetch
curl <https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py> > /usr/bin/systemctl && chmod +x /usr/bin/systemctl

sf秘钥

8lgm-nvP6GaNlAhUDDLs50lRi1WX8

skynet

apt update && apt upgrade -y&& apt install -y gcc libreadline-dev autoconf make
git clone <https://github.com/cloudwu/skynet.git> && cd skynet && make linux

lua中文化llex.c

git clone -b v3.21.4 <https://github.com/protocolbuffers/protobuf.git>

----在skynet根目录运行

cd skynet
make 'linux'
./skynet ./examples/config
./3rd/lua/lua examples/client.lua
lua examples/client.lua

—备份

rm yhx.tar.gz
tar -cvf yhx.tar.gz ./yhx
sz yhx.tar.gz

----删除

rm -r skynet

—数据库

sudo mongod -f /etc/mongod.conf

----集群

cd yhx/src
./skynet/skynet ./etc/config.node1
./skynet/skynet ./etc/config.node2
sh start.sh 1
sh start.sh 2
sh topb.sh
telnet 127.0.0.1 8000
login,1001,123

----端口占用

fuser -n tcp -k 8000
fuser -n tcp -k 8100
sudo netstat -anp | grep 80

----数据库操作

show databases;
use message_board;
select * from msgs;

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!

赞助
WSL2常用指令
https://firefly.cuteleaf.cn/posts/wsl2常用指令/
作者
yhx
发布于
2026-04-24
许可协议
CC BY-NC-SA 4.0
Profile Image of the Author
Firefly
Hello, I'm Firefly.
公告
欢迎来到我的博客!这是一则示例公告。
音乐
封面

音乐

暂未播放

0:00 0:00
暂无歌词
分类
标签
站点统计
文章
17
分类
5
标签
21
总字数
18,889
运行时长
0
最后活动
0 天前

目录