我安装了 apache 2 但在 sudo ufw 应用程序列表中应用程序列表中没有 apache 应用程序

Tha*_*lli 3 apache2

我通过命令 sudo apt install apache2 安装了 apache2,当我输入 sudo ufw app list 时,没有与 apache 相关的应用程序,如 apache full 等......它显示如下可用应用程序:CUPS OpenSSH Postfix Postfix SMTPS Postfix Submission Can any one给我解释一下,这到底是什么原因?提前致谢

小智 9

出于某种原因,Apache2 UFW Profile 不见了,etc/ufw/application.d所以你必须为自己创建一个。No Panic 只需使用以下命令创建一个新的文本文件即可: gedit /etc/ufw/applications.d/apache2-utils.ufw.profile并将其复制到其中并保存。

[Apache]
title=Web Server
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=80/tcp

[Apache Secure]
title=Web Server (HTTPS)
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=443/tcp

[Apache Full]
title=Web Server (HTTP,HTTPS)
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=80,443/tcp
Run Code Online (Sandbox Code Playgroud)