在 2021年7月 发布的文章
#pragma once #include <functional> #include <vector> #include "lua.hpp" namespace sunny { template <typename T> class luna { private: using me...
先上传证书到服务器listen 80; listen 443 ssl http2; #listen [::]:80; # 证书路径 ssl_certificate /root/.ssh/web/www.jiangpenghui.cn.pem; ssl_certificate...
logger.h#pragma once #include <memory> #include <string> #include "spdlog/sinks/daily_file_sink.h" #include "spdlog/sinks/stdout_color_sinks.h"...
config.h#pragma once #include <any> #include <fstream> #include <iostream> #include <map> #include <mutex> #include <string_view> #include ...
# 进入配置目录下 cd /usr/local/nginx/conf/vhost/ # 打开配置文件 vim xxxxx.conf # 修改配置文件 server { listen 80; #listen [::]:80; server_name www.jiangpenghui.cn jia...
原理定时器的精度假设每一格为2.5 ms 0.0025 * 256 * 63 * 63 *63 *63 = 10,081,895.04 sec 10,081,895.04 / 60 / 60 /24 = 116.6886 day 定时器有效时间最大范围unsigned int 2^32 拆分为5个时间轮 2^8 2^6 2^6 2^6 2^6...
我使用的两种网络配置方式方式一:# 网卡1 桥接模式 # 网卡2 网络地址转换NAT linux-> vim /etc/netplan/xxxx.yaml # 修改: enp0s3: dhcp4: no addresses: [跟宿主机一样网段的ip] # 添加: enp0s8: dhcp4: yes # 保存 :wq # 应用 ...
- 1
- 2
- 3
- 4
- 后一页 »