Phusion Passenger 未启动:“sudo:乘客:找不到命令”
我正在运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然使用
rvmsudo
是有效的。谢谢你们的帮助!Apparently using
rvmsudo
works. Thanks for your help guys!