【问题标题】:mix phoenix.server (startup) > killed (phoenix server does not start)mix phoenix.server (startup) > kill (phoenix server 不启动)
【发布时间】:2017-10-10 08:12:31
【问题描述】:

情况:

尝试在 Ubuntu 服务器上启动全新的 phoenix 项目时
使用命令mix phoenix.server 我们看到以下输出:

==> mime
Compiling 1 file (.ex)
Killed

服务器无法启动,但没有提示我们为什么... 之前的命令是:

在 Ubuntu 服务器上安装 Erlang/Elixir/Phoenix

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install build-essential erlang elixir erlang-base-hipe erlang-dev
mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

我在这里错过了一步吗? (我应该安装任何东西else

凤凰计划创建

mix phoenix.new --no-ecto --no-brunch phoenix_app
* creating phoenix_app/config/config.exs
* ...

Fetch and install dependencies? [Yn] Y
* running mix deps.get
* ...

cd phoenix_app
mix phoenix.server

服务器详情

  • 凤凰v1.2.1
  • IEx (Elixir) 1.4.2
  • 混合 1.4.2
  • 二郎/OTP 19
  • 操作系统:Ubuntu 16.04.2 LTS
  • 主持人:数字海洋

只是想弄清楚这是环境设置问题还是我做错了什么。希望有人else 之前遇到过这个Killed 的事情并且可以提供帮助!在 Phoenix 文档中找不到它...

iRealise 这是一个“noob”问题,context 是我正在尝试使用 Distillery 从头开始​​部署这些instructions,但无法超越基础知识,所以想知道这个killed 问题是否是事情...?

【问题讨论】:

  • 可以试试临时增加内存再编译吗?绝对看起来像我上面的答案一样的OOM问题。
  • 感谢@Dogbert 没有你我们该怎么办?! :-)
  • @Dogbert 在 512Mb 虚拟机上 100% 正确(像往常一样),只有 12MB 是免费的(感谢 Docker 占用它没有使用的资源! i>) 暂时关闭 docker 以执行编译步骤并重新启动。一切正常,谢谢!

标签: installation runtime-error phoenix-framework elixir


【解决方案1】:

这里没有菜鸟问题。以防万一有人阅读此页面并想知道如何正确设置 phoenix 框架开发,这里是安装指南:

在 Ubuntu 20.04 + Phoenix 1.5.1 中安装:

https://www.yodiw.com/install-elixir-phoenix-framework-in-ubuntu-20-04-focal-fossa/

在 Windows 10 + Phoenix 1.5.1 中安装:

https://www.yodiw.com/phoenix-elixir-installation-in-windows-10/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-01
    • 2017-08-01
    • 1970-01-01
    • 2023-04-01
    • 2019-02-13
    相关资源
    最近更新 更多