簡體   English   中英

使用EXRM進行Phoenix部署

[英]Phoenix Deployment with 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 test@127.0.0.1

我懷疑您會在其中找到“ myapp @ myhost”的名稱。 嘗試將其更改為yourappname @localhostyourappname @127.0.0.1 注意:我並不是說您應該在此處輸入文字字符串yourappname 替換您的應用名稱。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM