随笔分类 -  NGINX

摘要:nginx配置pc.conf文件如下: server { listen 80; server_name www.zhongyuan.com; #root /usr/share/nginx/html/pc; location / { root /usr/share/nginx/html/pc; } l 阅读全文
posted @ 2021-07-18 15:51 B_en′Pǎo 阅读(2455) 评论(0) 推荐(0)
摘要:worker_priority 0; #工作进程优先级,-20-20(19)实际只能达到19,修改成20优先级也是19 worker_rlimit_nofile 65535; #所有worker进程能打开的文件数量上限,包括:nginx的所有连接(例如与代理服务器的连接等),而不仅仅是与客户端的连接 阅读全文
posted @ 2021-07-16 16:16 B_en′Pǎo 阅读(84) 评论(0) 推荐(0)
摘要:打流软件yum安装yum install httpd-tools -y while true;do ab -c 1000 -n 2000 http://172.17.0.17/ ; done 查看cpu变化 watch -n 5 'ps axo pid,cmd,psr |grep nginx' 过一 阅读全文
posted @ 2021-07-16 10:48 B_en′Pǎo 阅读(78) 评论(0) 推荐(0)
摘要:安装debian的nginx 安装教程参考:https://blog.csdn.net/ShouZhuoFengFengSh/article/details/108411933https://www.cnblogs.com/wzxmt/p/12379847.html HttpHeadersModul 阅读全文
posted @ 2021-07-16 01:24 B_en′Pǎo 阅读(217) 评论(0) 推荐(0)
摘要:查看命令,根据cpu核数具体修改 watch -n 5 'ps axo pid,cmd,psr |grep nginx' 阅读全文
posted @ 2021-07-15 18:07 B_en′Pǎo 阅读(78) 评论(0) 推荐(0)
摘要:文章转载:https://www.cnblogs.com/lemon-flm/p/8352194.html 感谢作者 nginx比较强大,可以针对单个域名请求做出单个连接超时的配置. 比如些动态解释和静态解释可以根据业务的需求配置 proxy_connect_timeout :后端服务器连接的超时时 阅读全文
posted @ 2021-07-08 22:31 B_en′Pǎo 阅读(725) 评论(0) 推荐(0)