随笔 - 669  文章 - 0  评论 - 56  阅读 - 320万

随笔分类 -  tools-nginx

nginx
在CentOS 7上安装Nginx服务器
摘要:下面我就我在CentOS上安装Nginx经验做简单的记录,以备后查。 1、下载nginx-release包 以CentOS 7为例,下载nginx软件包:http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.e 阅读全文
posted @ 2017-07-31 19:19 adolfmc 阅读(297) 评论(0) 推荐(0) 编辑
nginx跨域处理
摘要:http://www.nginx.cn/nginx-download nginx.conf配置 if ($request_method = ‘OPTIONS’) { add_header Access-Control-Allow-Origin *; add_header Access-Control 阅读全文
posted @ 2016-01-20 18:18 adolfmc 阅读(925) 评论(0) 推荐(0) 编辑
Nginx 用log_format设置日志格式
摘要:1、配置文件#vim /usr/local/nginx/conf/nginx.conflog_format access ‘$remote_addr – $remote_user [$time_local] “$request” ‘‘$status $body_bytes_sent “$http_r... 阅读全文
posted @ 2015-04-07 17:00 adolfmc 阅读(4177) 评论(0) 推荐(0) 编辑
FastDFS_v4.06+nginx-1.4.2配置详解
摘要:径不带group名(storage只有一个group的情况),如/M00/00/00/xxx: location /M00 { ngx_fastdfs_module; } 访问路径带group名(storage对应有多个group的情况),如/group1/M00/00/00/xxx: ... 阅读全文
posted @ 2015-01-27 17:32 adolfmc 阅读(494) 评论(0) 推荐(0) 编辑
windows 下 nginx 的启动 停止 关闭
摘要:停止nginx -s stop重新加载配置文件(改动了参数无需重启,只有执行重新加载即可)nginx -s reload退出 停止 关闭nginx -s quit 阅读全文
posted @ 2014-03-05 10:32 adolfmc 阅读(584) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示