c++ webServer
Software architecture description
os. ubuntu Linux ubuntu 4.15.0-45-generic #48~16.04.1-Ubuntu
database mysql Ver 14.14 Distrib 5.7.30, for Linux (x86_64)
database instructions are as follows
create database yourdb;
USE yourdb; CREATE TABLE user( username char(50) NULL, passwd char(50) NULL )ENGINE=InnoDB;
INSERT INTO user(username, passwd) VALUES('name', 'passwd')
c++11
all unit test are executed at windows 4 CPUs
./server [-p port] [-o OPT_LINGER] [-s sql_num] [-t thread_num] [-a actor_model]
default values are 3333 , 1(linger on), 8 ,0(thread::hardware_coccurrency), 0(proactor)
databaseconfigs are in server.hpp for changing
http source files are in http_conn.hpp for changing
change makefile for using debug or not and using synclogger or asynclogger or nologger (or you can input make LOGTYPE=2 DEBUG=2 to set make flags, default value LOGTYPE = 3, DEBUG=2, meaning no log and -O2 -NDEBUG)
use webbench test http ./webbench -c 500 -t 5 http://127.0.0.1:3333/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。