Phusion Passenger 未启动:“sudo:乘客:找不到命令”

发布于 2024-12-29 14:11:35 字数 2976 浏览 2 评论 0原文

我正在运行 Ubuntu 11.10 服务器并成功安装 Phusion Passenger。当我尝试启动它时,出现以下错误:

christy@beast0:/$ passenger status
Phusion Passenger Standalone is not running, according to PID file /passenger.3000.pid
christy@beast0:/$ passenger start
Stopping web server.../home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `initialize': Permission denied - /passenger.3000.pid.lock (Errno::EACCES)
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `open'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `exclusive_lock'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller.rb:269:in `stop'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:466:in `block in stop_nginx'
from <internal:prelude>:10:in `synchronize'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:463:in `stop_nginx'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:94:in `rescue in run'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:98:in `run'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:93:in `block in run_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:48:in `block in each_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:43:in `each'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:43:in `each_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:91:in `run_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:62:in `run!'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:39:in `run!'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/bin/passenger:32:in `<top (required)>'
from /home/christy/.rbenv/versions/1.9.3-p0/bin/passenger:19:in `load'
from /home/christy/.rbenv/versions/1.9.3-p0/bin/passenger:19:in `<main>'
christy@beast0:/$ sudo passenger start
sudo: passenger: command not found`

有想法吗?

I'm running Ubuntu 11.10 server and successfully installed Phusion Passenger. I'm getting the following errors when I try to start it:

christy@beast0:/$ passenger status
Phusion Passenger Standalone is not running, according to PID file /passenger.3000.pid
christy@beast0:/$ passenger start
Stopping web server.../home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `initialize': Permission denied - /passenger.3000.pid.lock (Errno::EACCES)
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `open'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller/lock_file.rb:63:in `exclusive_lock'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/daemon_controller-0.2.6/lib/daemon_controller.rb:269:in `stop'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:466:in `block in stop_nginx'
from <internal:prelude>:10:in `synchronize'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:463:in `stop_nginx'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:94:in `rescue in run'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/start_command.rb:98:in `run'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:93:in `block in run_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:48:in `block in each_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:43:in `each'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:43:in `each_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:91:in `run_command'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:62:in `run!'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/standalone/main.rb:39:in `run!'
from /home/christy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/bin/passenger:32:in `<top (required)>'
from /home/christy/.rbenv/versions/1.9.3-p0/bin/passenger:19:in `load'
from /home/christy/.rbenv/versions/1.9.3-p0/bin/passenger:19:in `<main>'
christy@beast0:/$ sudo passenger start
sudo: passenger: command not found`

Ideas?

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

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

发布评论

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

评论(1

梦明 2025-01-05 14:11:35

显然使用 rvmsudo 是有效的。谢谢你们的帮助!

Apparently using rvmsudo works. Thanks for your help guys!

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