nginx介绍
nginx参数说明
- -t : 查看nginx安装目录
- -s reload : 重新加载配置文件(重启启动nginx)
- -s stop : 快速停止或关闭nginx
- -s quit : 正常停止或关闭nginx
- -c : 指定了要加载的nginx配置文件路径
例子: nginx -c /usr/local/nginx/conf/nginx.conf - -s reopen : 重新打开日志文件
nginx文件下载服务器conf配置
root 文件路径;
location / {
charset utf-8;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
if ($request_filename ~* ^.*?\.(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$){
add_header Content-Disposition attachment;
}
}

被折叠的 条评论
为什么被折叠?



