我安装了 apache 2,但在 sudo ufw 应用程序列表中,应用程序列表中没有 apache 应用程序
i installed apache 2 but in sudo ufw app list there is no apache applications in the app list
我通过命令安装了apache2
sudo apt 安装 apache2
当我输入 sudo ufw app list
没有与apache相关的应用程序,如apache full等......
它是这样显示的
可用的应用程序:
杯子
打开SSH
后缀
后缀 SMTPS
后缀提交
任何人都可以解释一下这到底是什么原因吗?
提前致谢
出于某种原因,etc/ufw/application.d
中缺少 Apache2 UFW 配置文件,因此您必须自己创建一个。不用恐慌,只需使用以下命令创建一个新的文本文件即可:
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
我通过命令安装了apache2 sudo apt 安装 apache2 当我输入 sudo ufw app list 没有与apache相关的应用程序,如apache full等...... 它是这样显示的 可用的应用程序: 杯子 打开SSH 后缀 后缀 SMTPS 后缀提交 任何人都可以解释一下这到底是什么原因吗? 提前致谢
出于某种原因,etc/ufw/application.d
中缺少 Apache2 UFW 配置文件,因此您必须自己创建一个。不用恐慌,只需使用以下命令创建一个新的文本文件即可:
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