Files
Nexus/docs/changelog/2026-06-05-nx-executable-bit.md
T
Nexus Deploy 0a7c5ee617 fix(deploy): set executable bit on nx and refresh symlinks on update
Git tracked deploy/nx as 644 so /usr/local/bin/nx failed with Permission denied after pull; update.sh now chmods CLI scripts before upgrade.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 04:39:33 +08:00

19 lines
515 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-05 — 修复 nx Permission denied
## 摘要
`deploy/nx` 在 Git 中为 `100644``git pull``/usr/local/bin/nx` 符号链接指向不可执行文件,运行报 `Permission denied`
## 修复
- Git 为 `deploy/nx``deploy/update.sh` 等脚本设置 `+x`
- `deploy/update.sh` 启动时自动 `chmod +x` 并刷新 `/usr/local/bin/nx` 符号链接
## 服务器立即修复
```bash
chmod +x /opt/nexus/deploy/nx /opt/nexus/deploy/update.sh
ln -sf /opt/nexus/deploy/nx /usr/local/bin/nx
nx
```