# 集群式网络聊天系统 **Repository Path**: leeday/network-chat-system ## Basic Information - **Project Name**: 集群式网络聊天系统 - **Description**: 采用nginx tcp负载均衡环境的集群模式构建的网络聊天系统后端程序,网络模块基于muduo网络库实现,采用redis的消息队列作为服务器中间件。配合控制台简易前端 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-28 - **Last Updated**: 2024-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: 网络聊天系统, 集群 ## README # 网络聊天系统 #### 介绍 采用nginx tcp负载均衡环境的集群模式构建的网络聊天系统后端程序,网络模块基于muduo网络库实现,采用redis的消息队列作为服务器中间件,使用mysql配合链接池作为存储工具。配合控制台简易前端 #### 软件架构 软件架构说明 #### 安装教程 1. 安装muduo库以及其依赖(git等) 2. 安装redis 3. 安装mysql,创建chat数据库以及一系列表格,创建文件在顶层文件夹chat.sql 4. 安装nginx并配置,nginx编译时命令./configure --with-stream,配置文件写好stream,范本在顶层文件nginx.conf 5. cd build 6. rm -rf * 7. cmake .. 8. make 9. 编译成功的话会在/chat/bin目录看到2个编译好的文件ChatServer为服务器程序,ChatClient为简易的命令行客户端程序