1.后台插件管理付费安装插件后,点击配置,配置端口等信息:
2.阿里云配置安全组: 放行 1818 2828 1238
3.php.ini里边搜索disable_functions然后把它后面,所有以pcntl开头的函数都取消禁用,重新启动,再开启(获取找到网站对应php版本,去删除pcntl的禁用函数)
4. php.ini配置open_basidir值添加上 :/dev/null .多个地址在linux是用:分割的
5.启动守护进程"
php think fastchat start d
引入:
<!-- 引入的顺序按下面来,不然会报错 -->
<script type="text/javascript" src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script> <script type="text/javascript" src="__CDN__/assets/libs/bootstrap/dist/js/bootstrap.min.js"></script> <script type="text/javascript" src="__CDN__/assets/addons/fastchat/js/fastchat.js"></script> <script type="text/javascript" src="__CDN__/assets/libs/fastadmin-layer/dist/layer.js"></script>
<script type="text/javascript">
FastChat.initialize('one.eomko21.cn', 'index');
</script>