前端开发语言:Vue( 安卓,IOS,Web为一套前端代码),服务器端开发语言: PHP+WebSocket,数据库:MySql + Mongodb,前端打包工具:Hbuilder 服务器搭建工具:宝塔 + Xshell。
短信接口: 支持阿里云 支付接口:支持支付宝 服务器配置: 4核8G宽带10兆以上,服务器系统:Linux CentOS 7.6 64位,是否需要域名:需要。
教程开始
开放28018 8383 1236端口修改mongodb 端口为28018
php安装扩展:fileinfo redis Swoole4 mongodb删除全部禁用函数
终端命令:/www/wwwroot/im/http/app/im/common/controller/ActionBegin1.php 修改GatwayWork服务地址/www/wwwroot/im/http/config/database.php 修改数据库信息/www/wwwroot/im/socket/app/im/common/controller/Main.php 修改数据库信息/www/wwwroot/im/socket/app/im/common/controller/Config.php 修改IP
mongodb安装cd /www/servercd mongodbcd bin./mongorestore -h 127.0.0.1:28018 -d im -dir /www/wwwroot/mongodb/im
ffmpeg安装wget http://smiaoshen.oss-cn-hangzhou.aliyuncs.com/im/ffmeg.zipmv ffmeg.zip /optcd /optunzip ffmeg.zip
安装yasmwget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gztar -zxvf yasm-1.3.0.tar.gzcd yasm-1.3.0./configure make && make install./configure && make && make installcd ../cd /optcd ffmpeg./configure && make && make install
启动服务cdcd /www/wwwroot/im/socketphp start.php start
下载Hbuilder前端操作需要设置vue主程序的三个api接口
后台登录用户名:admin 密码:123456TP伪静态,防跨域关掉
ID:73215