我是安装phabricator的新手,我在运行守护进程时遇到问题
当我运行sudo ./bin/phd start
时,我收到此错误。
Usage Exception: Daemons are configured to run as user "phd" in
configuration option `phd.user`, but the current user is "root" and `phd`
was unable to switch to the correct user with `sudo`. Command output:
Command failed with error #255!
COMMAND
exec sudo -En -u 'phd' -- ./phd-daemon
STDOUT
(empty)
STDERR
[2016-04-23 18:50:09] EXCEPTION: (Exception) Specified daemon PID directory
('/var/tmp/phd/pid') does not exist or is not writable by the daemon user!
at [<phutil>/src/daemon/PhutilDaemonOverseer.php:114]
arcanist(head=master, ref.master=a2ab38df78a9), phabricator(head=master,
ref.master=00885edc47d4), phutil(head=master, ref.master=b8058f6e29ba)
#0 PhutilDaemonOverseer::__construct(array) called at
[<phabricator>/scripts/daemon/launch_daemon.php:11]
我正在关注此安装指南。 https://gist.github.com/sparrc/b4eff48a3e7af8411fc1
由于
答案 0 :(得分:0)
您是否在机器上创建了博士用户? 如果你不想创建它。
如果这样做,请尝试先切换到phd,或者在命令前加sudo -u phd
运行命令。