【Redis,Netty,Nginx 等实现高性能IO的核心原理】 I/O 输入输出(input/output)的对象可以是文件(file), 网络(socket),进程之间的管道(pipe)。在linux系统中,都用文件描述符(fd)来表示。 I/O 多路复用(multiplexing) I/O ...
分类:
Web程序 时间:
2021-04-24 13:10:34
阅读次数:
0
* * */1 * * /usr/sbin/ntpdate 172.17.14.90 18 * * * echo ''>/usr/local/nginx/logs/access.log0 14 * * * echo ''>/java/apache-tomcat-9.0.31/logs/catalin ...
分类:
系统相关 时间:
2021-04-24 11:54:24
阅读次数:
0
1、下载nginx包 直接去官网下载:http://nginx.org/en/download.html 2、下载完成后,在指定位置解压缩,不要直接双击nginx.exe。 3、运行cmd,进入解压的指定目录下 4、启动nginx服务,启动命令为:start nginx,启动时会一闪而过是正常的 5 ...
摘要:Linux内存非法访问检查工具上新了:KFence Linux的4月份基本都是在Linux 5.12的开发版本中度过的。如果要说这个期间Linux有什么让人印象深刻的特性或者功能,那KFence一定会有一席之地。 KFence,全称Memory Safety Error Checking,之所 ...
分类:
系统相关 时间:
2021-04-22 15:25:36
阅读次数:
0
Vue使用Element-ui Table 合并行,官方只是一个非常简单的合并例子,通常业务都是相同的某个字段进行合并。 效果图 代码实现 1、Table <el-table :data="dataTable" border :header-cell-style="{background: '#FA ...
分类:
其他好文 时间:
2021-04-21 12:57:40
阅读次数:
0
Nginx负载均衡 nginx的原理Nginx 采用的是多进程(单线程) & 多路IO复用模型 1、Nginx 在启动后,会有一个 master 进程和多个相互独立的 worker 进程2、master进程接收来自外界的信号,向各worker进程发送信号,每个进程都有可能来处理这个连接3、 mast ...
分类:
其他好文 时间:
2021-04-21 12:54:27
阅读次数:
0
# 安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel # 解压缩 tar -zxvf linux-nginx-1.12.2.tar.gz cd nginx-1.12.2/ # 执行配置 ./configu ...
分类:
其他好文 时间:
2021-04-21 12:51:27
阅读次数:
0
uwsgi 常用参数 项目目录 chdir=/var/www/orange_web/ 指定项目application module=orange_web.wsgi:application 指定sock的文件路径(nginx使用) socket=/var/www/script/uwsgi.sock 进 ...
分类:
其他好文 时间:
2021-04-21 12:41:29
阅读次数:
0
1. nginx.cof配置文件说明 # 运行用户 user nobody; # 启动进程,通常设置成和cpu的数量相等 worker_processes 1; # 全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log n ...
分类:
其他好文 时间:
2021-04-21 12:37:55
阅读次数:
0
最近做题养成了一个不太好的习惯,习惯性的先去看discuss有没有坑,越是惧怕错误越可能出错,之后的锻炼,出错再去check discuss吧 简单的BFS #include <iostream> #include <algorithm> #include <queue> #include <str ...
分类:
其他好文 时间:
2021-04-21 12:34:23
阅读次数:
0