![](/img/trans.png)
[英]I currently run my amazon ec2 instance on port 3000. I want to run it on port 80 instead. How can I do it?
[英]When I SSH into my EC2 instance, how do I figure out what server it is currently running?
當我 ssh 進入 EC2 實例並查看服務器配置文件時,我看到 Apache 配置文件、NGINX 配置文件。 為什么兩台服務器都在那里? 哪個優先? 兩台服務器是否同時運行? 他們一起工作嗎? 我的服務器端代碼 go 將在哪里用於 Node.js?
它是在 Elastic Beanstalk 環境中的 64 位 Amazon Linux/4.10.2 上運行的 Node.js。
我在 Serverfault 中問了這個問題並得到了這個答案。 您可以運行命令ps ax | grep -E '(apache2|httpd|nginx)'
ps ax | grep -E '(apache2|httpd|nginx)'
查看哪個正在運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.