Linux常用命令
重置
1 | bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p lion123 -port 22 |
更新环境
1 | apt update -y && apt upgrade -y && apt install -y curl wget sudo socat |
安装curl
Debian/Ubuntu
1 | apt update -y && apt install -y curl |
CentOS
1 | yum update && yum install -y curl |
Alpine Linux
1 | apk update && apk add curl |
kejilion一键运行脚本
官网版
1 | curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh |
GitHub版 部分小伙伴会遇到官网版出现大段乱码!就用GitHub版本吧!
1 | curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh |
国内服务器版
1 | curl -sS -O https://raw.gitmirror.com/kejilion/sh/main/cn/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh |
安装 Docker
1 | curl -fsSL https://get.docker.com | sh |
查看端口是否被占用 lsof -i :port
或者 netstat -anp |grep port
结束进程 kill -9 pid
查看ip
1 | c |
docker
docker 查看容器 docker ps
部署docker-compose容器 docker-compose up -d
查看 Docker 内网地址
1 | ip addr show docker0 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 時光!
评论
TwikooValine