使用阿里雲出現502getbadway 解決方案

秦小風發表於2017-12-21

最近在使用阿里雲伺服器+ghost 搭建部落格。搭建部落格中遇到一些問題。 首先是執行 start index 的時候出現警告: root@iZ25qr2kz4yZ:/srv/ghost# sudo NODE_ENV=production forever start index.js warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: 這個警告可以忽略。。 重啟伺服器後如果出現  502getbadway   解決方案: 連線伺服器  ssh root@101.xxx.xxx.xxx  然後 cd /srv/ghost 重啟 index.js sudo NODE_ENV=production forever start index.js

然後 就 ok 了. 之前遇到這個問題 網上搜了好多答案 都不能解決。可能是因為自己對這塊不太懂。沒有搜到正確的關鍵字吧。這裡記錄一下,以後再遇到就知道從哪裡下手了。

搭建的部落格地址: www.shavekevin.com

相關文章