File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515
1616可以使用Docker编译,需要在项目的根目录下运行:
1717
18- 1 . 根据自己的配置,复制 ` pool .ini.example` 文件为 ` pool.ini ` 文件,修改 ` pool.ini ` 文件
18+ 1 . 根据自己的配置,复制 ` config .ini.example` 文件为 ` pool.ini ` 文件,修改 ` pool.ini ` 文件
19192 . ` docker build -t php-cp . `
2020
2121
@@ -60,7 +60,7 @@ $ echo "extension=connect_pool.so" > /etc/php.d/20-connection_pool.ini
6060
6161* 初始化配置(一次性)
6262```
63- $ cp ./pool .ini.example /etc/pool.ini //根据需求修改配置内容
63+ $ cp ./config .ini.example /etc/pool.ini //根据需求修改配置内容
6464$ mkdir -m 755 /var/log/php-connection-pool //创建日志目录 目录文件夹不存在或没权限会导致日志写不起
6565$ chmod +x ./pool_server //x权限git已经设置 为稳妥再设置一次 pool_server为php脚本 可自行修改
6666$ [ -f /bin/env ] || sudo ln -s /usr/bin/env /bin/env //deb系的系统(如debian、ubuntu)env的路径为/usr/bin/env做软链接兼容处理
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if (empty($argv[1])) {
2020$ cmd = $ argv [1 ];
2121
2222if (is_readable ($ config_file ) === false ) {
23- echo "Can NOT read config file, 请复制pool .ini.example到 {$ config_file }路径下 " . PHP_EOL ;
23+ echo "Can NOT read config file, 请复制config .ini.example到 {$ config_file }路径下 " . PHP_EOL ;
2424 exit ($ exit_code_general );
2525}
2626if (parse_ini_file ($ config_file , true ) === false ) { //for stop && reload && test ini
You can’t perform that action at this time.
0 commit comments