linux - 在 CentOS 上安装 Apache

标签 linux centos centos7 virtualhost

<分区>

如何在 CentOS 7 上安装 Apache?

最佳答案

1) 以 root 身份登录或使用 sudo

2) yum install -y httpdsudo yum install -y httpd

3)所有配置文件位于/etc/httpd/conf/etc/httpd/conf.d

4)你所有的html文件都可以在/var/www/html

中找到

5) 在 http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-httpd.html 开始学习基础知识

6) 喝杯咖啡、茶或任何你最喜欢的东西。

关于linux - 在 CentOS 上安装 Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4536633/

相关文章:

linux - 无法从 Linux 中的同一台机器上 ping 通主机名

Linux shell 到 windows 批处理文件

linux - 是否可以更改 Linux 中的默认粘贴寄存器?

linux gcc 链接的可执行文件缺少 stat64 的静态定义

linux - 在服务器中使用 TCP Keep-Alives 摆脱空闲客户端

java - 通过Java发送邮件

amazon-web-services - 如何在 CentOS 7 上使用 yum 安装最新的 awscli?

linux - 多个嵌套的 echo 语句通过管道传输到命令内核限制

centos - mysql dump 运行,但什么都不做

php - 使目录权限被拒绝,但权限设置正确