← 返回 Skills 市场
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install linux-port-resolver
功能描述
Resolve Linux port conflicts (EADDRINUSE/bind failed) with precision. Detect occupying process, free the port, and prevent recurrence. Use when a service fai...
使用说明 (SKILL.md)
Linux Port Resolver
Quick fix port conflicts on Linux without guesswork.
Quick Commands
# Find what's on a port
ss -tlnp | grep :PORT
# Alternative if ss not available
netstat -tlnp 2>/dev/null | grep :PORT
# Also check IPv6
ss -tlnp | grep :PORT
Resolution Steps
-
Identify the process
ss -tlnp | grep ":\x3CPORT> " # Output: LISTEN 0 128 0.0.0.0:PORT 0.0.0.0:* users:(("process",PID,)) -
Verify the PID - don't kill system processes
ps -p PID -o pid,ppid,cmd,user -
Kill gracefully, escalate if needed
kill PID # SIGTERM - graceful sleep 2 && ss -tlnp | grep ":\x3CPORT> " # verify kill -9 PID # SIGKILL - force, last resort -
Or reconfigure - change the port in the service config instead
- systemd: edit
/etc/systemd/system/SERVICE.service, change port,systemctl daemon-reload && systemctl restart SERVICE - Docker: change
ports:mapping in docker-compose.yml - Custom app: check config file or env var for port setting
- systemd: edit
-
Prevent recurrence with ExecStartPre in systemd
[Service] ExecStartPre=/bin/sh -c 'kill -9 $(ss -tlnp | grep ":PORT " | grep -oP "pid=\\K\\d+") 2>/dev/null; true'
Safety Checklist
- Confirmed the port is actually in use
- Identified the PID correctly
- PID is not PID 1 or a critical system daemon
- Verified there's no other instance still running
- Checked both IPv4 and IPv6 listeners
安全使用建议
Use this skill carefully and only on Linux systems you administer. Before allowing it to stop a process, verify the PID and service identity yourself. Be especially cautious with the suggested systemd ExecStartPre auto-kill command; it should not be installed unless you fully understand and accept the risk of future automatic process termination.
功能分析
Type: OpenClaw Skill
Name: linux-port-resolver
Version: 1.0.0
The skill provides standard Linux administrative procedures for identifying and resolving port conflicts using common utilities like ss, ps, and kill. The instructions in SKILL.md are well-aligned with the stated purpose of troubleshooting EADDRINUSE errors and do not contain any indicators of malicious intent, data exfiltration, or unauthorized persistence.
能力评估
Purpose & Capability
Resolving port conflicts coherently involves identifying and sometimes stopping a process, but the included prevention workflow goes beyond one-time troubleshooting by adding an automatic force-kill action to a systemd service.
Instruction Scope
The instructions include high-impact process termination commands, including SIGKILL, and a shell-based systemd ExecStartPre hook without strong scoping to a specific expected process.
Install Mechanism
There is no install spec and no code files; this is an instruction-only skill.
Credentials
The skill is Linux-specific and uses Linux networking/process/service-management commands, but the registry metadata does not restrict it to Linux.
Persistence & Privilege
The systemd guidance can create persistent behavior that force-kills whichever process is listening on a port before a service starts, likely requiring privileged system configuration changes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install linux-port-resolver - 安装完成后,直接呼叫该 Skill 的名称或使用
/linux-port-resolver触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Linux Port Resolver 是什么?
Resolve Linux port conflicts (EADDRINUSE/bind failed) with precision. Detect occupying process, free the port, and prevent recurrence. Use when a service fai... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。
如何安装 Linux Port Resolver?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install linux-port-resolver」即可一键安装,无需额外配置。
Linux Port Resolver 是免费的吗?
是的,Linux Port Resolver 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Linux Port Resolver 支持哪些平台?
Linux Port Resolver 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Linux Port Resolver?
由 new(@laolaoqi)开发并维护,当前版本 v1.0.0。
推荐 Skills