Go to file
luocai 06c399c472
All checks were successful
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 44s
support c++20 for ubuntu2204.
2024-11-20 18:04:14 +08:00
.gitea/workflows update config files deploy. 2024-11-20 14:55:56 +08:00
.vscode update ver. 2024-11-19 00:06:01 +08:00
Dockerfiles support c++20 for ubuntu2204. 2024-11-20 18:04:14 +08:00
MediaServer fix code. 2024-10-23 21:04:59 +08:00
resources add login widget. 2024-11-19 23:39:40 +08:00
Server update config files deploy. 2024-11-20 14:55:56 +08:00
ThirdParty Add task. 2023-12-30 01:19:36 +08:00
ToolKit add ZLMediaKit code for learning. 2024-09-28 23:55:00 +08:00
UnitTest add extra info for analysis. 2024-07-31 22:28:05 +08:00
WebApplication update config files deploy. 2024-11-20 14:55:56 +08:00
.clang-format update config files deploy. 2024-11-20 14:55:56 +08:00
.gitignore Add task. 2023-12-30 01:19:36 +08:00
CMakeLists.txt add exit command. 2024-11-10 18:33:39 +08:00
LICENSE Initial commit. 2023-07-20 19:30:39 +08:00
Readme.md add extra info for analysis. 2024-07-31 22:28:05 +08:00

HttpServer

访问统计

表名visit_analysis

字段名 数据类型 空值约束 PRIMARY KEY
id INTEGER NOT NULL
url TEXT NOT NULL
visitor_uuid TEXT NOT NULL
last_user_agent TEXT NOT NULL
last_view_time INTEGER NOT NULL
page_view_count INTEGER NOT NULL

插入 urlvisitor_uuidlast_user_agent last_view_time至表中如果表中已存在urlvisitor_uuid的item则更新last_user_agent last_view_time并将page_view_count加1否则创建新的item并将page_view_count赋值为1

任务清单

字段名 数据类型 长度/精度 空值约束 默认值 约束条件
id INTEGER NOT NULL PRIMARY KEY
create_time INTEGER NOT NULL
parent_id INTEGER
content VARCHAR(512) NOT NULL
finished BOOL
finished_time INTEGER

2021/09/03

  1. 通过阿里云申请免费SSL证书放置cert目录中。
  2. 修改conf/nginx.conf文件使http全部重定向至https。

Core Dump

通过命令ulimit -a查看:

real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 6846
max locked memory           (kbytes, -l) 228312
max memory size             (kbytes, -m) unlimited
open files                          (-n) 65535
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 6846
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

core file size这一项为0说明不生成core dump文件。

/etc/profile里面加入

ulimit -c unlimited
sysctl -w kernel.core_pattern=core_%t_%s_%d_%e

查看帮助man 5 core

微信公众号对接

  1. 公众号管理网页:设置与开发→基本配置→服务器配置。
  2. 由于使用的是测试公众号,因此只能够接受消息,微信服务器会将该信息发送至我们的服务器,然后我们可以对该消息进行回复,随后该连接将被关闭。
stateDiagram-v2
[*] --> Idle

Idle --> WaitSetAlarmClock : input 1
WaitSetAlarmClock --> Idle : process input

Idle --> WaitSetText : input 2
WaitSetText --> Idle : process input

Idle --> Idle : not found