• crmchat安装搭建教程文档 bug问题调试


    一、安装PHP插件:fileinfo、redis、swoole4。
    二、删除PHP对应版本中的 proc_open禁用函数。
    一、设置网站运行目录public,
    二、设置PHP版本选择纯静态。
    三、可选项如有需求则开启SSL,配置SSL证书,开启强制https域名。
    四、添加反向代理。

    重启命令: sudo -u www php think swoole restart

    在这里插入图片描述在这里插入图片描述在这里插入图片描述1、进入 禁用函数 ,找到 proc_open 删除
    在这里插入图片描述
    2、 PHP版本 ,选择纯静态,点击 切换
    在这里插入图片描述3、配置反向代理

    nginx 和 apache反向代理配置二选一查看文档,安装了哪个程序就看哪个的配置说明
    nginx反向代理配置
    添加反向代理,代理名称随意填写,尽量为英文,添加目标URL:http://127.0.0.1:20108,点击提交保存配置
    在这里插入图片描述
    4、如过 添加反向代理 报错失败请先删除 伪静态 里面的配置

    配置ws反向代理,点击配置文件
    在这里插入图片描述5、宝塔版本大于等于7.8版本复制一下内容,替换配置文件

    #PROXY-START/
    
    location ^~ /
    {
        proxy_pass http://127.0.0.1:20108;
        proxy_http_version 1.1;
        proxy_read_timeout 360s;   
        proxy_redirect off; 
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header REMOTE-HOST $remote_addr;
    
        add_header X-Cache $upstream_cache_status;
    
        #Set Nginx Cache
    
    
        set $static_fileLzXnun8E 0;
        if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
        {
         set $static_fileLzXnun8E 1;
         expires 12h;
            }
        if ( $static_fileLzXnun8E = 0 )
        {
        add_header Cache-Control no-cache;
        }
    }
    
    #PROXY-END/
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33

    6、执行启动命令,启动swoole。
    在这里插入图片描述
    7、执行swoole启动命令

    sudo -u www php think swoole restart

    8、展示如下界面,启动成功
    在这里插入图片描述 9、运行完成,下一步进入程序一键安装
    在这里插入图片描述10、安装程序完成.执行:sudo -u www php think swoole restart执行完后,就可以访问后台和前端了

    11、如果不会安装的、需要二次开发的 都可以 找我帮忙处理:

    在这里插入图片描述

  • 相关阅读:
    阿里云ESS弹性伸缩的实例配置以及伸缩组规则配置
    面试准备-软件工程
    回溯算法(回溯搜索法)
    黑猫带你学UFS协议第22篇:UFS语境管理详解(context management)
    MySQL知识【可视化软件navicat安装&使用】第五章
    .NET服务治理之限流中间件-FireflySoft.RateLimit
    Java安全第一篇 | 反射看这一篇就够了
    Linux系统下升级python版本
    Java调用操作系统命令的输出乱码问题解决
    信息学奥赛一本通 连接格点
  • 原文地址:https://blog.csdn.net/withkai44/article/details/134521618