Perforce 中 /home 中的 db.* 文件?
我在 /home 目录中看到几个 db.* 文件,它们似乎来自 perforce。例如,有些文件是db.archmap、db.bodtext、db.change、db.changex
这些文件有用吗?我可以删除它们吗?他们让我的 /home 目录变得混乱
I see several db.* files in my /home directory, and it seems they come from perforce. For example, some files are db.archmap, db.bodtext, db.change, db.changex
Are these files useful? Can I delete them? They are making my /home directory messy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您已使用主目录作为 Perforce 服务器的 P4ROOT 文件夹启动了服务器。这些文件是在启动服务器时生成的文件,除非您想清理服务器安装,否则无法删除它们。我不清楚您是如何启动服务器实例的,因此我将尝试用我的答案涵盖多个基础。
如果您想在自己的帐户下启动服务器,您应该设置 P4ROOT 环境变量并将其指向您希望服务器存储其文件的位置。或者,当您启动服务器时,您可以使用 -r 选项在命令行上指定根文件夹:
这会将服务器的文件放入我的主目录中名为“p4server”的目录中。
通常,最好使用专门运行 perforce 的用户来运行 perforce 服务器。我使用一个名为“perforce”的用户。我在该用户环境中设置了 P4ROOT (和其他变量)。如果您无法使用单独的用户,那么使用我上面提到的 -r 命令行选项可能会更容易。
You have started a server using your home directory as the Perforce server's P4ROOT folder. Those files are files that are generated from starting the server and cannot be deleted unless you want to hose your server installation. It's not clear to me how you've started the server instance, so I'll try and cover multiple bases with my answer.
If you want to start up the server under your own account, you should set the P4ROOT environment variable and point it to where you want the server to store its files. Alternatively, when you start the server, you can specify the root folder on the command line using the -r option:
which would put the server's files into the directory called 'p4server' off of my home directory.
Typically it is best to run the perforce server using a user that is dedicated to running perforce. I use a user called 'perforce'. I set P4ROOT (and other variables) in that users environment. If you cannot use a separate user, it might be easier to use the -r command line option that I mentioned above.
这些文件只是服务器文件,而不是客户端文件。因此删除它们是安全的,但如果您备份启动服务器,它将重新创建它们。所以您可能想卸载服务器。
除非你运行的是测试版,否则他们很快就会推出 p4sandbox(也许是测试版,我忘了),它可能会创建这些文件。我没有测试版,因此我无法验证客户端可能会或可能不会创建哪些新文件。
Those files are only server files, not client files. So it is safe to delete them, but if you start the server back up it will recreate them. So you might want to uninstall the server.
Unless you are running a beta version, they have p4sandbox coming soon(maybe in the beta, I forget) which MAY create those files. I don't have a beta version, so I can't verify what new files the client may or may not create.
您可以在此处查看文档,了解这些文件的用途。
You can check the documentation here to see what these files do/are for.