随笔分类 -  nginx

小结
该文被密码保护。

posted @ 2020-02-15 10:54 锋锋2019 编辑

nginx日志
摘要:统计nginx access.log文件中对ip地址去重并统计重复数access.log awk '{h[$1]++}END{for(i in h) print i,h[i]}' /var/log/nginx/access.log |sort -nrk2 |head | column -t 阅读全文

posted @ 2020-01-08 21:29 锋锋2019 阅读(83) 评论(0) 推荐(0) 编辑

http请求
摘要:参考: https://www.cnblogs.com/yuanchenqi/articles/8875623.html 返回代码: 302 重定向304 如果第二次请求没什么变化,从缓存里取,此时返回304401 未授权:登录失败403 禁止:禁止执行访问 404 找不到,请求路径有问题500 服 阅读全文

posted @ 2019-11-22 10:55 锋锋2019 阅读(333) 评论(0) 推荐(0) 编辑

nginx常用配置
摘要:401 未授权:登录失败403 禁止:禁止执行访问 404 找不到 500 服务器的内部错误 502 网关出错 503 服务不可用 yum安装nginx: #添加yum源 sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/ngi 阅读全文

posted @ 2019-11-07 14:45 锋锋2019 阅读(715) 评论(0) 推荐(0) 编辑

nginx加php(三) 启动脚本
摘要:不用nginx默认的方式启动nginx start_web.sh #!/bin/bash USE_FPM=1USE_HHVM=0ulimit -HSn 60000 if [ "$USE_FPM" = "1" ]; then if [ $(ps hf -C php-fpm | wc -l) = "0" 阅读全文

posted @ 2019-11-02 19:13 锋锋2019 阅读(234) 评论(0) 推荐(0) 编辑

nginx加php(二) 配置文件
该文被密码保护。

posted @ 2019-11-02 19:11 锋锋2019 阅读(3) 评论(0) 推荐(0) 编辑

nginx加php(一)
摘要:yum install nginx 安装php7.3https://kifarunix.com/installing-php-7-3-3-on-centos-7-6/ yum install epel-releaseyum install http://rpms.remirepo.net/enter 阅读全文

posted @ 2019-11-02 19:06 锋锋2019 阅读(181) 评论(0) 推荐(0) 编辑

nginx一些高级配置
摘要:参数: https://www.wangbokun.com/%E8%BF%90%E7%BB%B4/2018/07/21/Nginx.html 免费证书等 1/ nginx代理hue限制上传文件大小限制 server { listen 80; server_name hue.xxx.com; loca 阅读全文

posted @ 2019-10-18 16:38 锋锋2019 阅读(156) 评论(0) 推荐(0) 编辑

导航

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