安装的话可以参考: https://www.phusionpassenger.com/library/install/apache/install/oss/el7/ 进行安装。
这次主要是为了说明几个安装过程中遇到的坑
坑1
[Wed Jul 11 00:59:52.928212 2018] [passenger:error] [pid 21692] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not found (tried: /usr/lib64/passenger/support-binaries/PassengerAgent and /root/.passenger/support-binaries/5.3.3/PassengerAgent). There may be different causes for this:\n\n - Your 'PassengerRoot' setting is set to the wrong value. Please see https://www.phusionpassenger.com/library/config/apache/reference/#passengerroot to learn how to fix the value.\n - The PassengerAgent binary is not compiled. Please run this command to compile it: /usr/bin/passenger-config compile-agent\n - Your Passenger installation is broken or incomplete. Please reinstall Passenger.
-
原因是:因为之前有安装passenger失败的过程,所以才导致的问题。
-
卸载办法:
gem uninstall passenger
sudo yum remove -y passenger mod_passenger
Note:卸载可以参考: https://www.phusionpassenger.com/library/install/apache/uninstall/oss/
坑2:
安装好了之后,通过capistrino部署代码的时候,发现/var/ww 没有权限,修改办法:
sudo chown deploy:deploy /var/www/
网友评论