ubuntu-14.04 - 使用 EXRM 进行 Phoenix 部署

标签 ubuntu-14.04 elixir phoenix-framework exrm

我正在尝试使用 EXRM 在 Ubuntu 服务器上部署 phoenix 应用程序。

该版本运行完美,网站可以访问,但当我 ping 该版本时,它显示

Node 'myapp@myhost' not responding to pings.

vm.args 文件

## Name of the node
-sname pxblog

## Cookie for distributed erlang
-setcookie pxblog

## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart

## Enable kernel poll and a few async threads
##+K true
##+A 5

## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

更新了 vm.args(已解决)

## Name of the node
-sname pxblog@localhost

## Cookie for distributed erlang
-setcookie pxblog

## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart

## Enable kernel poll and a few async threads
##+K true
##+A 5

## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

最佳答案

检查vm.args 文件。查找与此类似的行:

## Name of the node
-name <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2256475156621310150c120c120c13" rel="noreferrer noopener nofollow">[email protected]</a>

我怀疑您会发现的名称是“myapp@myhost”。尝试将其更改为 yourappname@localhostyourappname@127.0.0.1。注意:我并不是说您应该将文字字符串 yourappname 放在那里。替换您的应用程序的名称。

关于ubuntu-14.04 - 使用 EXRM 进行 Phoenix 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36281192/

相关文章:

elixir - 在 Elixir 中获取两个(字符串)日期之间的差异

elixir - Phoenix Framework - 如何通过 form_for 填充 map 字段?

docker - 没有 Rabbit MQ Connection 的 Docker 容器内的 Elixir 发布

elixir - Phoenix 伞应用不支持热重载代码

Elixir phoenix 设置 websocket 响应头

linux - 如何安装 Node 和 NPM,这样我就不必使用 sudo?

ssl - 使用 Phoenix/Elixir 在本地设置 SSL 时出现问题

php - 无法更改 Magento 安装上的区域设置

PostgreSQL 无法连接到服务器 : No such file or directory

django - 如何让 django 应用程序在 vagrant 的后台运行?