centos7安装apache

安装

yum install httpd
  • 安装后的文件路径:
/etc/httpd/conf/httpd.conf      # 主配置文件
/var/www/html                   # 默认网站家目录

设置开机启动

systemctl enable httpd

启动apache

systemctl start httpd

查看状态

systemctl status httpd

在这里插入图片描述

# 查看端口
netstat -tulp

在这里插入图片描述

posted @ 2022-02-17 15:23  一锤子技术员  阅读(2)  评论(0编辑  收藏  举报  来源