- 清除规则
iptables -F
- 移除nginx
apt remove nginx
- 关闭防火墙
sudo ufw disable
- 安装apache
apt update
sudo apt install apache2
- 启动apache
sudo systemctl start apache2
- 查看apache端口
netstat -tunlp | grep 'apache2'
- 测试
标签:ubuntu22.4,sudo,apt,apache2,nginx,apache,安装 From: https://www.cnblogs.com/personblog/p/18221298