簡體   English   中英

當我將 SSH 插入我的 EC2 實例時,我如何確定它當前正在運行什么服務器?

[英]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。

引用文檔

The AWS Elastic Beanstalk Node.js platform is a platform version for Node.js web applications that can run behind an nginx proxy server, behind an Apache server, or standalone.

我假設為了簡化部署,Elastic Beanstalk 選擇同時部署 NGINX 和 Apache,無論您選擇哪種機制來提供內容。

配置選項ProxyServer=apache/nginx/none

我在 Serverfault 中問了這個問題並得到了這個答案。 您可以運行命令ps ax | grep -E '(apache2|httpd|nginx)' ps ax | grep -E '(apache2|httpd|nginx)'查看哪個正在運行。

暫無
暫無

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

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