当我运行时service supervisor start遇到以下错误:
Starting supervisor: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
For help, use /usr/bin/supervisord -h
Run Code Online (Sandbox Code Playgroud)
/var/log/superuser/supervisord.log的内容:
2014-08-04 16:25:45,891 CRIT Supervisor running as root (no user in config file)
2014-08-04 16:25:45,891 WARN Included extra file "/etc/supervisor/conf.d/com.domain.subdomain.conf" during parsing
Run Code Online (Sandbox Code Playgroud)
知识
渊博的东西: - 我在数字海洋服务器上使用Debian Wheezy.
- 我试图检查端口管理程序在具有相同规格的干净Vagrant框中使用,但我有相同的错误.
我怎样才能检查哪个端口是此错误的来源?
我想调用一个匿名函数而不为它声明一个变量.
我知道这是一个有效的例子:
$foo = function ($bar) use ($foo) {
if (is_array($bar)) {
foreach ($bar AS $current) {
$foo($current);
}
}
else {
print($bar);
}
};
$foo($input);
# Unset variable cause we won't need it anymore
# and we like to have a lot of free memory.
unset($foo);
Run Code Online (Sandbox Code Playgroud)
但是我想自动调用它并取消它:
call_user_func(function ($bar) {
if (is_array($bar)) {
foreach ($bar AS $current) {
# This won't work
# as our function doesn't have any name.
call_user_func(__FUNCTION__, $current);
}
}
else {
print($bar);
}
}, …Run Code Online (Sandbox Code Playgroud) 我按照官方指南安装mongodb,但是失败了很多次。首先,我尝试使用brew install mongodb
brew --version
Homebrew 1.4.3
brew install mongodb
Run Code Online (Sandbox Code Playgroud)
错误:
Error: Permission denied @ rb_sysopen - /usr/local/var/homebrew/locks/scons.formula.lock
Run Code Online (Sandbox Code Playgroud)
我尝试使用sudo
sudo brew install mongodb
Run Code Online (Sandbox Code Playgroud)
错误:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Run Code Online (Sandbox Code Playgroud)
我仍在尝试下载二进制文件并通过tar命令将其解压缩,但是它更加复杂,并且遇到了许多其他问题。所以我希望首先解决这个问题...有什么想法吗?非常感谢。
debian ×1
homebrew ×1
macos ×1
mongodb ×1
permissions ×1
php ×1
php-5.5 ×1
recursion ×1
supervisord ×1