Linux系统安装Apache服务器

1.查看是否已安装httpd

yum list installed httpd 或 rpm -qa | grep httpd

2.如未安装,则用yum安装

yum install httpd.x86_64

3.启动

service httpd start

4.

主配置文件:/etc/httpd/conf/httpd.conf

httpd.conf文件中指定如下内容:




默认的访问页面如下(如果/var/www/html下没有手动定义index.html则会访问默认的):


可以这样找到默认页面的位置:find / -name index.html | grep httpd


猜你喜欢

转载自blog.csdn.net/qq692042122/article/details/80633801