简体   繁体   中英

How do I restart phusion passenger?

rails@george:/srv/fsg_distro$ sudo passenger-status
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux
# cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux
# /usr/bin/ruby '/usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/extconf.rb'
checking for alloca.h... yes
checking for ruby/io.h... no
creating Makefile
# make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby -DHAVE_ALLOCA_H    -fPIC -g -O2   -g  -c /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/passenger_native_support.c
gcc -shared -o passenger_native_support.so passenger_native_support.o -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic    
ERROR: Phusion Passenger doesn't seem to be running.

My set up was working just fine but for some reason the last time I deployed it killed phusion passenger and I'm not sure how to restart it. Any ideas?

I am running passenger as an apache module (mod rails). I have tried restarting apache and rebooting the server with no luck.

Thanks

This thread and the initial error you're getting from passenger-status suggest something's wrong with your Passenger installation - missing libraries which need to be compiled. Is reinstalling Passenger a realistic troubleshooting step here?

(edited to actually suggest something useful :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM