Pixiv - KiraraShss
WSL2常用指令
231 字
1 分钟
WSL2常用指令
安装
apt update && apt upgrade -yComfyUI
source py3/bin/activatecd ComfyUIpython main.pyweget -csshx
curl -sSf <https://sshx.io/get> | shnovnc
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.shngrok
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/binngrok 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.shapt update && apt upgrade -y&&apt install -y neofetch nano git unzip vim curl wget sudo tmate && neofetchcurl <https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py> > /usr/bin/systemctl && chmod +x /usr/bin/systemctlsf秘钥
8lgm-nvP6GaNlAhUDDLs50lRi1WX8skynet
apt update && apt upgrade -y&& apt install -y gcc libreadline-dev autoconf makegit clone <https://github.com/cloudwu/skynet.git> && cd skynet && make linuxlua中文化llex.c
git clone -b v3.21.4 <https://github.com/protocolbuffers/protobuf.git>----在skynet根目录运行
cd skynetmake 'linux' ./skynet ./examples/config./3rd/lua/lua examples/client.lualua examples/client.lua—备份
rm yhx.tar.gztar -cvf yhx.tar.gz ./yhxsz yhx.tar.gz----删除
rm -r skynet—数据库
sudo mongod -f /etc/mongod.conf----集群
cd yhx/src./skynet/skynet ./etc/config.node1./skynet/skynet ./etc/config.node2sh start.sh 1sh start.sh 2sh topb.shtelnet 127.0.0.1 8000login,1001,123----端口占用
fuser -n tcp -k 8000fuser -n tcp -k 8100sudo netstat -anp | grep 80----数据库操作
show databases;use message_board;select * from msgs;支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!