![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
tsuyokuninaru
人生不易啊
展开
-
IO多路复用
IO复用知识第一章 Redis IO多路复用第二章 NGINX io多路复用第一章 Redis IO多路复用引用:redis设计与实现 第12章 文件事件概念:“多路”指的是多个网络连接,“复用”指的是复用同一个线程。采用多路 I/O 复用技术可以让单个线程高效的处理多个连接请求(尽量减少网络IO的时间消耗)。可以直接理解为:单线程的原子操作,避免上下文切换的时间和性能消耗;加上对内存中数据的处理速度,很自然的提高redis的吞吐量文件事件四个组成部分尽管多个文件事件可能会并发地出现,但原创 2020-07-02 15:29:33 · 182 阅读 · 0 评论 -
nginx域名重定向
vhost下配置文件书写如下server{ listen 80; server_name test.com test2.com test3.com; index index.html index.php index.htm; root /data/wwwroot/test.com; if ($host != 'test.com'){ rewrite ^/(.*)$ http:/...原创 2019-02-22 12:30:15 · 320 阅读 · 0 评论 -
NGINX 用户验证
1.创建用户权限的账号和密码htpasswd -c /usr/local/nginx/conf/htpasswd aming2.新建个文件夹 /data/wwwroot/test.com写入文件内容 echo “test.com” > /data/wwwroot/test.com/index.html3.编写nginx/conf/vhostvi test.com.confse...原创 2019-02-22 12:34:52 · 500 阅读 · 0 评论 -
nginx日志记录及文件切割
vim /usr/local/nginx/conf/nginx.conf //搜索log_format格式意义$remote_addr客户端IP(公网IP)$http_x_forwarded代理服务器的IP$time_local服务器本地时间$host访问主机名(域名)$request_uri访问的url地址)$status状态码...原创 2019-02-22 12:42:05 · 264 阅读 · 0 评论 -
nginx配置
查看nginx配置是否出错/usr/local/nginx/sbin/nginx -t原创 2019-02-22 12:43:40 · 654 阅读 · 0 评论 -
nginx 代理react-router 单页面入口配置刷新问题【转载】
原文章地址:https://yjph83.iteye.com/blog/2311687访问 /paopao 直接跳转到/paopao/home,刷新页面报404由于/home是前端路由需要的参数,所以配置你网站所对应的config文件(我的是nginx.config)location /paopao/ { root 对应网站目录; # 如果server下已有就不用配置了 #tr...转载 2019-05-18 20:02:05 · 702 阅读 · 0 评论