Skip to content

A cluster chat server based on muduo, redis, which can work on nginx, tcp environment

Notifications You must be signed in to change notification settings

YeeeeeS11/ClusterChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClusterChatServer

A cluster chat server based on muduo, redis, which can work on nginx, tcp environment

####编译和运行

需要nginx tcp负载均衡模块 需要运行在Linux环境

1、编译

// 直接运行autobuild.sh文件
./autobuild.sh

2、打开服务器

cd bin
./ChatServer xxx.xxx.xxx.xxx xxxx // ip和port,在nginx配置文件中进行配置

3、打开客户端

// 打开一个新的客户端
cd bin
./ChatClient xxx.xxx.xxx.xxx xxxx // ip和nginx端口号,默认8000

About

A cluster chat server based on muduo, redis, which can work on nginx, tcp environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published