web服务器的基本用法
目录
1、安装
2、启动
3、默认发布目录
1、安装
yum install nginx -y    # nginx安装
yum install httpd -y    # apache安装 
2、启动
systemctl enable --now httpd
systemctl enable --now nginx 
3、默认发布目录
/usr/www/html/            # apache默认发布目录
/usr/share/nginx/html     # nginx默认发布目录 
可修改配置文件更改默认发布目录
/etc/httpd/conf/httpd.conf
/etc/nginx/nginx.conf 
统一两者的发布目录 /web/html
echo /web/html page > /web/html/index.html 























