如何通过 SSH 将 Bazaar 安装到共享服务器?

发布于 2024-09-10 09:26:56 字数 218 浏览 1 评论 0原文

如果我可以通过 SSH 访问共享服务器(运行 centOS)并且我想安装 Bazaar。我没有 root 访问权限,但 Python 已经安装在服务器上,所以这应该不是问题。

登录服务器后我真的不知道从哪里开始。我假设第一步是将 Bazaar 应用程序文件复制到服务器上......但我不知道将它们放在哪里。

如果有帮助,我将使用共享服务器作为存储库 - 我不会用它进行任何签出或任何操作。

If I have SSH access to a shared server (running centOS) and I want to install Bazaar. I do not have root access, but Python is already installed on the server, so that shouldn't be a problem.

I really don't know where to begin after logging into the server. I'm assuming the first step is to copy the Bazaar application files onto the server... but I don't know where to put them.

If it helps, I will be using the shared server as a repository - I won't be doing any checkouts or anything with it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别想她 2024-09-17 09:26:56

来自安装常见问题解答

安装在主目录

您可以将 Bazaar 安装到主目录中的 ~/bin 中。此方法要求 ~/bin 位于您的 $PATH 中,并且 ~/lib/python 位于您的 $PYTHONPATH 中代码>.

% python setup.py install --home $HOME

但是,如果您确实将其用作存储库,则无需安装 Bazaar。 此操作方法解释了如何操作在只有 SSH 但没有 Bazaar 的服务器上设置 Bazaar 存储库。它不会为您带来与 bzr+ssh 一样好的性能,但您实际上需要运行 Bazaar 服务器才能获得 bzr+ssh ;您在共享服务器上可能没有该权限。

From the Installation FAQ:

Install in home directory

You can install Bazaar into home directory, in ~/bin. This method requires that ~/bin is in your $PATH and that ~/lib/python is in your $PYTHONPATH.

% python setup.py install --home $HOME

However, if you are truly only using it as a repository, there's no need to install Bazaar. This how-to explains how to set up a Bazaar repository on a server that only has SSH but no Bazaar. It won't get you quite as good performance as bzr+ssh, but you would actually need to run a Bazaar server to get bzr+ssh anyway; you may not have that right on your shared server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文