运维命令
端口
查看端口占用
安装 lsof
查看8080端口
sudo lsof -i :8080
杀死进程
kill [pid]
Tmux
创建
建立 tag 名字的session
tmux new -s [tag]
attach
tmux a -t [tag]
脱离
Ctrl+b 然后按 D
杀死session
tmux kill-session -t [tag]
写权限
sudo chmod -R g+w [path]
安装 lsof
查看8080端口
sudo lsof -i :8080
kill [pid]
建立 tag 名字的session
tmux new -s [tag]
tmux a -t [tag]
Ctrl+b 然后按 D
tmux kill-session -t [tag]
sudo chmod -R g+w [path]