gpt4 book ai didi

ruby-on-rails - 如何重启 phusion passenger?

转载 作者:行者123 更新时间:2023-12-04 03:51:16 24 4
gpt4 key购买 nike

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.

我的设置工作得很好,但由于某种原因,我上次部署它时杀死了 phusion passenger,我不确定如何重新启动它。有什么想法吗?

我将 passenger 作为 apache 模块(mod rails)运行。我试过重新启动 apache 并重新启动服务器,但没有成功。

谢谢

最佳答案

This thread以及您从 passenger-status 得到的初始错误表明您的 Passenger 安装有问题 - 缺少需要编译的库。在这里重新安装 Passenger 是一个现实的故障排除步骤吗?

(经过编辑实际上提出了一些有用的建议:)

关于ruby-on-rails - 如何重启 phusion passenger?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4000279/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com