我只是使用phusion将Rails应用程序部署到了服务器上,我们配置了所有必需的东西,但是即使当我们尝试重新启动它显示的某些更改时该应用程序似乎正在运行时,
*** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it
is running, then the causes of this problem could be one of:
1. You customized the instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's
passenger_instance_registry_dir option, or Phusion Passenger Standalone's
--instance-registry-dir command line argument. If so, please set the
environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory
and run this command again.
2. The instance directory has been removed by an operating system background
service. Please set a different instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir
option, or Phusion Passenger Standalone's --instance-registry-dir command
line argument.
我们的apache配置如下:
<VirtualHost *:80>
ServerName ourdomain
DocumentRoot /var/www/siege/public
PassengerRuby /usr/local/rvm/gems/ruby-2.5.1/wrappers/ruby
<Directory /var/www/siege/public>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
Require all granted
</Directory>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
<IfModule mod_passenger.c>
PassengerMaxPoolSize 12
PassengerMinInstances 0
PassengerMinInstances 3
</IfModule>
</VirtualHost>
实际上该应用程序正在运行,当我们运行passenger-memory-stats
时,它始终显示相同的路径:
Version: 6.0.2
Date : 2019-06-18 21:44:29 +0000
--------- Apache processes ---------
PID PPID VMSize Private Name
------------------------------------
1028 1 170.2 MB 0.6 MB /usr/sbin/apache2 -k start
1097 1028 836.9 MB 1.8 MB /usr/sbin/apache2 -k start
1098 1028 837.0 MB 2.0 MB /usr/sbin/apache2 -k start
### Processes: 3
### Total private dirty RSS: 4.48 MB
-------- Nginx processes --------
### Processes: 0
### Total private dirty RSS: 0.00 MB
---- Passenger processes -----
PID VMSize Private Name
------------------------------
1033 389.9 MB 2.5 MB Passenger watchdog
1068 675.4 MB 4.0 MB Passenger core
2342 558.3 MB 67.4 MB Passenger AppPreloader: /var/www/siege (forking...)
2362 491.3 MB 21.9 MB Passenger AppPreloader: /var/www/siege (forking...)
2381 557.3 MB 22.0 MB Passenger AppPreloader: /var/www/siege (forking...)
### Processes: 5
### Total private dirty RSS: 117.82 MB
是否有解决此问题的建议?