有没有办法检查我在 Ubuntu 14.04 (Trusty Tahr) 上安装了 Apache?
我正在尝试在我的 Ubuntu 安装中安装 LAMP
。
您可以使用以下命令检查Apache是否已安装:
dpkg --get-selections | grep apache
或者apache2 -v
命令:
dpkg --get-selections | grep apache
输出:
apache2 install
apache2-bin install
apache2-data install
apache2-utils install
命令:
apache2 -v
输出
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2019-10-08T13:31:25