1.配置文件默认是/etc/nginx/conf.d/default.conf源码安装一般是/usr/local/nginx/conf/nginx.conf2.修改字段网站目录和域名配置是server { listen 80; server_name 域名location / {root 网站目录