20220105聊天软件im搭建教程

php 7.3 
 
安装扩展  
fileinfo
mongodb
swoole4
swoole
redis
 
 
禁用函数 可以禁止一切
passthru
putenv
shell_exec
pcntl_exec
pcntl_aram
pcntl_fork
pcntl_signal_dispatch
pcntl_getpriority
pcntl_get_last_error
pcntl_signal
pcntl_wait
pcntl_waitpid
proc_open
 
pcntl_sigtimewait
popen
 
 
cd /www/server/mongodb
 
mongorestore -d im /www/wwwroot/dajian168.ccim/im
 
mongorestore -d ima_fa188_xyz /www/wwwroot/dajian168.cc/im/im
 
cd /www/wwwroot/socket/socket
php start.php start
 
 
端口
8383
 
1237
 
 
/app/im/common/controller/ActionBegin1.php
 Gateway::$registerAddress = '103.111.251.103:1236';
 
数据库修改
/config/database.php
 
 
/socket/socket/app/im/common/controller/Main.php
 
 
给socket文件夹 权限写入
103.118.253.103
 
 
App.vue
 
manifest.json 获取
 
szaatNrYCRkaxjXF