CentOS7 teamTalk部署

mysql安装

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

yum -y install mysql57-community-release-el7-10.noarch.rpm

yum -y install mysql-community-server

systemctl start mysqld.service

systemctl status mysqld.service

grep "password" /var/log/mysqld.log

mysql -uroot -p

mysql> set global validate_password_policy=0; mysql> set global validate_password_length=1;

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';

mysql>exit

yum -y remove mysql57-community-release-el7-10.noarch

//错误处理 error usr/bin/ld: cannot find -lmysqlclient_r

进入mysql lib目录 

ln -s libmysqlclient.so.20.3.22  libmysqlclient_r.so

安装redis

./make_hiredis.sh

php

yum install -y httpd php php-fpm

log4cxx

./make_log4cxx.sh

修改配置:

进入server/login_server修改loginserver.conf:

msfs=http://127xxxx:8700/

discovery=http://127xxxx/api/discovery

进入server/msg_server,修改msgserver.conf:

IpAddr1=xxx

进入server/db_proxy_server,修改dbserverproxy.conf里面的mysql的用户名密码为自己的。
 

编译 server

./build.sh version 1           //(./build.sh clean)

编译成功以后

cd..

cp im-server-1.tar.gz ../auto_setup/im_server/

./setup.sh文件

cd 

修改login_server下的loginserver.conf中的

msfs=http://127.0.0.1:8700/

discovery=http://127.0.0.1/api/discovery

中的IP地址。

进入/TeamTalk-master/auto_setuo/im_server下,修改权限,执行:

./restart.sh db_proxy_server

./restart.sh file_server

./restart.sh msfs

./restart.sh route_server

./restart.sh http_msg_server

./restart.sh login_server

./restart.sh msg_server

输入 localhost

登录 管理页面         

关闭防火墙 systemctl stop firewalld

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值