ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1. 打开conf配置文件 2. 设置项目的绝对路径 ( 注意尾部以/结束 ) ~~~ $ROOT = '/data/ProName/sbh/'; ~~~ 3.设置项目唯一标识 ~~~ define('PROKEY', 'sbhv81_ProName_v8'); ~~~ 4.配置redis信息 ~~~ $obj = []; $obj['pass'] = ''; //>密码 $obj['host'] = '127.0.0.1'; //>主机 $obj['port'] = 6379; //>端口 $obj['timeout'] = 10; //>超时秒数 define('REDIS', $obj); ~~~ 5.配置API ~~~ $obj = []; $obj['sign_key'] = ''; //>sign校对密钥 $obj['aes_key'] = ''; //>Api参数解析密钥(api的sign使用) $obj['backstage_key'] = ''; //>后台密钥(会影响后台用户密码) $obj['rsa_pub'] = ''; //>Api安全参非对称公钥 $obj['rsa_pri'] = ''; //>Api安全参非对称私钥 define('API', $obj); ~~~ 6.数据库配置 ~~~ $obj = []; $obj['suff'] = 'sbh_'; //>表前缀 $obj['host'] = ''; //>链接主机 $obj['table'] = ''; //>连接表 $obj['user'] = 'root'; //>账号 $obj['pass'] = ''; //>密码 define('DB', $obj); ~~~ 7.默认框架用户配置 ~~~ $obj = []; $obj['account'] = ''; $obj['password'] = ''; define('LOGIN', $obj); ~~~ 8.配置socket ~~~ $obj = []; $obj['url'] = ''; //>连接地址 define('SOCKET', $obj); ~~~