代码改变世界

pbm 还原物理备份提示executable file not found in $PATH. stderr

2025-10-16 11:03  abce  阅读(10)  评论(0)    收藏  举报

使用pbm还原percona mongodb的物理备份时遇到以下报错信息,还原失败:

# pbm restore 2025-10-11T03:02:18Z  --replset-remapping="rs=mongo_prod" 
Starting restore 2025-10-16T01:34:41.351311187Z from '2025-10-11T03:02:18Z'..Error: check mongod binary: run: exec: "mongod": executable file not found in $PATH. stderr: 
- Restore on replicaset "rs" in state: error: check mongod binary: run: exec: "mongod": executable file not found in $PATH. stderr: 

 

解决方案:

ln -s /usr/local/mongodb/bin/mongod /bin/mongod