Centos7下安装apache过程总结

来源:互联网 发布:python 内容管理系统 编辑:程序博客网 时间:2024/06/06 03:07

Apache在Linux系统中,其实叫“httpd”,可以使用yum来安装。
1、查看httpd包是否可用:

# yum list | grep httpd

2、安装Apache

# yum install httpd

3、配置ServerName

# vi /etc/httpd/conf/httpd.conf  右键打开即可如果没有域名,则:ServerName localhost:80

4、常用指令

启动# httpd停止# httpd -k stop设置开机自动启动:chkconfig httpd on

5、说明
默认的主配置文件是/etc/httpd/conf/httpd.conf

1 0
原创粉丝点击