如何删除独立的 Passenger?

发布于 2024-12-11 02:58:32 字数 652 浏览 0 评论 0原文

我正在构建一台用于开发的新笔记本电脑,并在过去几天安装了以下内容:

  • Ubuntu 11.04

  • Apache2

  • RVM

  • < p>rvm 下的 Ruby 1.9.2

  • rvm 下的 Ruby 1.8.7

  • Passenger3 at 1.9.2@global

  • 使用 Ruby 1.9.2 的 Apache 乘客模块

  • Passenger3 at 1.8.7@global

我准备使用 Ruby 为 Passenger 独立设置一些反向代理1.8.7 当我不小心在终端窗口中输入 Passenger start 时,它没有指向 1.8.7@global。

接下来我知道 Passenger 决定安装 Nginx 及其本身,甚至没有“请允许”,现在我在机器上的某个地方安装了一个额外的 Passenger 独立版本,我想摆脱它,但我找不到任何关于如何删除的说明删除这个。

编辑

我在 /home/purvez 下找到了一个 .passenger 目录,

也许这就是我需要删除的目录。请问有人可以证实或否认这一点吗?

I'm building a new laptop for development and had installed the following over the last few days:

  • Ubuntu 11.04

  • Apache2

  • RVM

  • Ruby 1.9.2 under rvm

  • Ruby 1.8.7 under rvm

  • Passenger3 at 1.9.2@global

  • Passenger module for Apache using Ruby 1.9.2

  • Passenger3 at 1.8.7@global

I was about to set up some reverse proxy to Passenger standalone using Ruby 1.8.7 when I accidentally typed in Passenger start in a terminal window which did not point to 1.8.7@global.

The next thing I knew Passenger decided to install Nginx and itself without even a 'by your leave' and now I have an extra Passenger standalone installed somewhere on the machine that I want to get rid of but I can't find any instructions on how to remove this.

Edit

I have found a .passenger directory under /home/purvez

Maybe it's that one that I need to get rid of. Can anyone confirm or deny this please?

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

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

发布评论

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

评论(2

如果没有你 2024-12-18 02:58:32

我在安装到我的系统的用户指南中找到了这一点:

要卸载 Phusion Passenger,请先删除所有 Phusion
来自 Nginx 配置的乘客配置指令
文件。完成此操作后,您需要删除 Phusion
乘客档案。

  • 如果您通过 gem 安装 Phusion Passenger,请输入 gem uninstall Passenger。您可能必须以 root 身份运行此程序。
  • 如果您通过源 tarball 安装了 Phusion Passenger,请删除放置解压的 Phusion Passenger 的目录
    文件。该目录与 by 指向的目录相同
    “PassengerRoot”配置指令。

我在 /var/lib/passenger-standalone 上执行了 rm -rf,然后重新启动,现在一切似乎都很好。

I found this in the User Guide that was installed to my system:

To uninstall Phusion Passenger, please first remove all Phusion
Passenger configuration directives from your Nginx configuration
file(s). After you've done this, you need to remove the Phusion
Passenger files.

  • If you installed Phusion Passenger via a gem, then type gem uninstall passenger. You might have to run this as root.
  • If you installed Phusion Passenger via a source tarball, then remove the directory in which you placed the extracted Phusion Passenger
    files. This directory is the same as the one pointed to the by
    'PassengerRoot' configuration directive.

I did an rm -rf on /var/lib/passenger-standalone, rebooted, and all seems well now.

暖心男生 2024-12-18 02:58:32

我一直在 Mac OS X 10.7.3 上处理同样的问题,

我还发现我的用户主目录下的 ~/.passenger/standalone 目录下有两个目录,其中之一是:

3.0.11-universal- ruby1.8.7-x86_64-macosx-10.7

另一个目录是 Ruby 1.9.3 的乘客独立目录,这是我想要的目录,是从上一次运行中创建的。

我将“3.0.11-universal-ruby1.8.7-x86_64-macosx-10.7”目录移动到一个新名称以测试并查看另一次运行“passenger start”是否会产生相同的结果,结果确实如此。二进制文件再次安装在相同的目录名称下,并且控制台消息在第二次安装期间是相同的。我确实预料到了这一点,但这证实了乘客认为二进制文件没有安装,所以我删除了该目录并继续前进。

我希望这有帮助。

I have been working with the same problem on Mac OS X 10.7.3

I also found the ~/.passenger/standalone directory under my users home directory with two directories under that, one of which was this one:

3.0.11-universal-ruby1.8.7-x86_64-macosx-10.7

The other directory was passenger standalone for Ruby 1.9.3 which is the one I wanted and was created from a previous run.

I moved the "3.0.11-universal-ruby1.8.7-x86_64-macosx-10.7" directory to a new name to test and see if another run of "passenger start" would yield the same result and it did. The binaries were installed again under the same directory name and the console messages were the same during the second install. I did expect this but this confirms that passenger thought the binaries were not installed, so I have removed the directory and moved on.

I hope this helps.

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