blade create network occupy
介绍
参数
--port string 指定被占用的端口,(必填项)
--force 强制占用此端口,会将已使用此端口的进程杀掉
--timeout string 设定运行时长,单位是秒,通用参数案例
# 指定 8080 端口占用
blade c network occupy --port 8080 --force
# 命令执行前
netstat -tanp | grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 19562/java
# 命令执行后
netstat -tanp | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 20041/chaos_occupyn实现原理
常见问题
Last updated
Was this helpful?