企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
根目录下start.php ~~~ define( '__WNUM__' , 1);//worker 进程数量 define( '__TNUM__' , 1 );// task 进程数量 define( '__PORT__' , 8364 );// 默认监听端口 --- 建议用Nginx 反向代理此端口-- define( '__LV__' , 'dev' );//读取配置前缀 如 /config/dev_config.php define( 'IS_CLI' , true ); define( 'DS' , DIRECTORY_SEPARATOR ); define( '__ROOTDIR__' , __DIR__ . '/' ); define( '__PIDDIR__' , __ROOTDIR__ . 'tmp/' ); define( '__APPDIR__' , __ROOTDIR__ . 'App/' ); define( '__HHPHP__' , __ROOTDIR__ . 'hhphp/' ); define( '__WEBDIR__' , __ROOTDIR__ . 'web/' ); define( '__LOG_PATH__' , __ROOTDIR__ . 'cache/' ); define( '__MODDIR__' , __APPDIR__ . 'Module/' ); define( '__SERDIR__' , __APPDIR__ . 'Server/' ); define( '__UPDIR__' , __WEBDIR__ . 'uploads/' ); define( '__STAT_PATH__' , __LOG_PATH__ . 'stat/' ); define( '__SCDIR__' , __LOG_PATH__ . 'schema/' ); define( '__UPPATH__' , '../../uploads/' ); define( '__PIDFILE__' , __PIDDIR__ . 'master.pid' ); ~~~ /config/dev_config.php 内容 ~~~ <?php return [ 'db' => [ 'master' => [ 'host' => 'localhost' , 'user' => 'root' , 'password' => 'root' , 'name' => 'hhphp' , 'tablepre' => '' , 'charset' => 'utf8mb4' , 'engine' => 'MyISAM' , ] , 'slaves' => [] , ] , 'cache' => [ 'host' => '127.0.0.1' , 'port' => '6379' , 'select' => 1 , 'password' => '' , 'cachepre' => str_replace([dirname(__ROOTDIR__),'/'],['','_'],__ROOTDIR__) .'_' , ] , //限制在线一个 'app_v' => time() , 'web_name' => '管理中心' , // +---------------------------------------------------------------------- // | 模块设置 // +---------------------------------------------------------------------- // 默认模块名 'default_module' => 'Index' , // 默认控制器名 'default_controller' => 'Index' , // 默认操作名 'default_action' => 'Index' , ]; ~~~