正在启动graylog2 web界面



我正在运行以下命令来启动我的后端。

passenger start -e production  

但我得到了这个错误:

*** ERROR ***
Could not start Passenger Nginx core:
nginx: [alert] could not open error log file: open()
"/var/folders/jb/ln9fjc350gj85ntzrhthxc_85ffn5t/T/passenger-standalone.190uy5z/l
ogs/error.log" failed (2: No such file or directory)
2013/07/24 12:22:47 [emerg] 24155#0: "passenger_pre_start" directive The primary
group of the user specified by the 'default_user' option does not exist. Your
system's user account database is probably broken, please fix it. in
/var/folders/jb/ln9fjc350gj85ntzrhthxc_85ffn5t/T/passenger-standalone.190uy5z/co
nfig:93
Stopping web server... done

请帮忙。

我在乘客方面也遇到过同样的问题,并已解决。

修复:乘客使用"nobody"作为默认用户,并接受nobody所属的组。

在apache/nginx/httpd/virtualhost-config中使用"PassengerDefaultUser"指令更改默认选项。

PassengerDefaultUser your-user

乘客将使用此"您的用户"运行应用程序

6.12.4.乘客默认用户

Phusion Passenger默认启用用户切换支持。这配置选项允许指定应用程序的用户如果用户切换失败或被禁用,则必须运行为。此选项可能在全局服务器配置中只发生一次。默认值是无名小卒。

6.12.5.PassengerDefaultGroup

Phusion Passenger默认启用用户切换支持。这配置选项允许指定应用程序所在的组如果用户切换失败或被禁用,则必须运行为。此选项可能在全局服务器配置中只发生一次。默认值是由PassengerDefaultUser指定的用户的主要组。

我得到的错误

由于此错误,乘客无法初始化:选项PassengerDefaultUser设置为"nobody",但其主要组没有存在换句话说,系统的用户帐户数据库已损坏。请修复。

最新更新