# 2026-06-05 — nx 符号链接路径修复

## 问题

`/usr/local/bin/nx` → `/opt/nexus/deploy/nx` 时，`dirname $BASH_SOURCE` 解析为
`/usr/local/bin`，`source nexus-1panel.sh` 失败。

## 修复

- `deploy/nx`：使用 `readlink -f` 解析真实路径
- `install-nexus-fresh.sh`：注册 `nexus-1panel` → `deploy/nexus-1panel.sh`

## 服务器立即修复

```bash
cd /opt/nexus && git pull
ln -sf /opt/nexus/deploy/nx /usr/local/bin/nx
ln -sf /opt/nexus/deploy/nexus-1panel.sh /usr/local/bin/nexus-1panel
nx god
```
