简体   繁体   English

如何防止 Linux 符号链接断开

[英]How to prevent Linux symbolic link from breaking

Good day hackers,好日子黑客,

I'm running Jenkins automation tools for my builds and the workspace is symbolic link to NFS mount.我正在为我的构建运行 Jenkins 自动化工具,工作区是 NFS 挂载的符号链接。 Something is deleting or breaking the symbolic links.某些东西正在删除或破坏符号链接。 Are there any monitoring tools I can use to find the root cause?有什么监控工具可以用来找出根本原因吗? Thanks:)谢谢:)

apps/jenkins/pipeline-worker/workspace/jenkins -> /workerfspoda/workspace/jenkins应用程序/jenkins/pipeline-worker/workspace/jenkins -> /workerfspoda/workspace/jenkins

You can try to solve this by protecting the link with sudo chattr +i <path>您可以尝试通过使用sudo chattr +i <path>保护链接来解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM