ubuntu22.4系统中,安装apache

 

  • 清除规则
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'

 

 
  • 测试

 

posted @ 2024-05-29 22:51  低调码农哥!  阅读(9)  评论(0编辑  收藏  举报