当前位置: 首页 > 工具软件 > TeamTalk > 使用案例 >

TeamTalk 单服务端配置

全鸿晖
2023-12-01

gitee地址:

TeamTalk: opensource im - Gitee.com

db_proxy_server启动会报:

error while loading shared libraries libhiredis.so.0.13

拷贝:

cp /home/TeamTalk/server/src/hiredis/hiredis-master/libhiredis.so /home/TeamTalk/server/server/im-server-0.6.0/db_proxy_server/
cd /home/TeamTalk/server/server/im-server-0.6.0/db_proxy_server/
cp libhiredis.so libhiredis.so.0.13

1、login_server

# config format spec
# this is a commet

ClientListenIP=0.0.0.0		# can use multiple ip, seperate by ';'
ClientPort=8008
HttpListenIP=192.168.0.4
HttpPort=8080
MsgServerListenIP=192.168.0.4 	# can use multiple ip, seperate by ';'
MsgServerPort=8100

msfs=http://192.168.0.4:8700/

discovery=http://192.168.0.4/api/discovery

2.msg_server

ListenIP=0.0.0.0
ListenPort=8000

ConcurrentDBConnCnt=2
DBServerIP1=192.168.0.4
DBServerPort1=10600
DBServerIP2=192.168.0.4
DBServerPort2=10600

LoginServerIP1=192.168.0.4
LoginServerPort1=8100
#LoginServerIP2=192.168.0.4
#LoginServerPort2=8101

RouteServerIP1=192.168.0.4
RouteServerPort1=8200
#RouteServerIP2=localhost
#RouteServerPort2=8201

PushServerIP1=192.168.0.4
PushServerPort1=8500

FileServerIP1=192.168.0.4
FileServerPort1=8600
#FileServerIP2=localhost
#FileServerPort2=8601

IpAddr1=180.**.**.***	#电信IP
IpAddr2=180.**.**.***	#网通IP
MaxConnCnt=100000

# AES key
aesKey=12345678901234567890123456789012

3.db_proxy_server

ListenIP=192.168.0.4
ListenPort=10600
ThreadNum=48		# double the number of CPU core
MsfsSite=192.168.0.4

#configure for mysql
DBInstances=teamtalk_master,teamtalk_slave
#teamtalk_master
teamtalk_master_host=192.168.0.4
teamtalk_master_port=3306
teamtalk_master_dbname=teamtalk
teamtalk_master_username=root
teamtalk_master_password=12345
teamtalk_master_maxconncnt=16

#teamtalk_slave
teamtalk_slave_host=192.168.0.4
teamtalk_slave_port=3306
teamtalk_slave_dbname=teamtalk
teamtalk_slave_username=root
teamtalk_slave_password=12345
teamtalk_slave_maxconncnt=16


#configure for unread
CacheInstances=unread,group_set,token,sync,group_member
#未读消息计数器的redis
unread_host=127.0.0.1
unread_port=6379
unread_db=1
unread_maxconncnt=16

#群组设置redis
group_set_host=127.0.0.1
group_set_port=6379
group_set_db=1
group_set_maxconncnt=16

#同步控制
sync_host=127.0.0.1
sync_port=6379
sync_db=2
sync_maxconncnt=1

#deviceToken redis
token_host=127.0.0.1
token_port=6379
token_db=1
token_maxconncnt=16

#GroupMember
group_member_host=127.0.0.1
group_member_port=6379
group_member_db=1
group_member_maxconncnt=48

#AES 密钥
aesKey=12345678901234567890123456789012

4.route_server

ListenIP=192.168.0.4			# Listening IP
ListenMsgPort=8200			# Listening Port for MsgServer

5.push_server

ListenIP=192.168.0.4
ListenPort=8500

CertPath=apns-dev-cert.pem
KeyPath=apns-dev-key.pem
KeyPassword=tt@mogujie

#SandBox
#1: sandbox 0: production
SandBox=1	

6.http_msg_server

ListenIP=192.168.0.4
ListenPort=8400

ConcurrentDBConnCnt=2
DBServerIP1=192.168.0.4
DBServerPort1=10600
DBServerIP2=192.168.0.4
DBServerPort2=10600

RouteServerIP1=192.168.0.4
RouteServerPort1=8200
#RouteServerIP2=192.168.0.4
#RouteServerPort2=8201

# AES key
aesKey=12345678901234567890123456789012

7.file_server

#Address=0.0.0.0         # address for client
ClientListenIP=0.0.0.0
ClientListenPort=8600   # Listening Port for client

MsgServerListenIP=192.168.0.4
MsgServerListenPort=8601

TaskTimeout=60         # Task Timeout (seconds)

8.websocket_server

ListenIP=192.168.0.4
ListenPort=9090

ConcurrentDBConnCnt=2
DBServerIP1=192.168.0.4
DBServerPort1=10610
DBServerIP2=192.168.0.4
DBServerPort2=10610

LoginServerIP1=192.168.0.4
LoginServerPort1=8100
#LoginServerIP2=127.0.0.1
#LoginServerPort2=8101

RouteServerIP1=192.168.0.4
RouteServerPort1=8200
#RouteServerIP2=127.0.0.1
#RouteServerPort2=8201

PushServerIP1=192.168.0.4
PushServerPort1=8500

FileServerIP1=192.168.0.4
FileServerPort1=8600
#FileServerIP2=localhost
#FileServerPort2=8601


SSLListenIP=180.**.**.***
SSLListenPort=9091
SSLCertFile=
SSLKeyFile=

IpAddr1=180.**.**.***	#电信IP
IpAddr2=180.**.**.***	#网通IP
MaxConnCnt=100000

# AES key
aesKey=12345678901234567890123456789012

9.msfs

这个配置文件有些问题,应该设置为:ListenIP=192.168.0.4,但每次重启ListenIP都会重置.配置文件没起作用.

BaseDir=./
FileCnt=10
FilesPerDir=30000
GetThreadCount=32
ListenIP=127.0.0.1
ListenPort=8700
PostThreadCount=1

我微信号:lo_word,欢迎一起交流

 类似资料: