Tagged: command line

尝试先迁移第一张表:pa_plan。查看表中的数据。肉眼可见表结构已经发生了很大的变化。具体的变化情况通过查看 14 个迁移文件具体分析。 0

The data of the COM environment of the public cloud is migrated to the CSP environment of the public cloud (the program version is inconsistent, and the upgrade to the same version is not allowed)

Post Views: 16 1. At this stage, there are two environments in the public cloud. They are COM environments and CSP environments, respectively. COM environment container, as shown in Figure 1 2. Containers in...

在 Windows 10 中执行命令行,报错:Call to undefined function App\Console\Commands\posix_getpid()。 0

Execute the command line in Windows 10 and report an error: call to undefined function app\console\commands\POSIX_Getpid()

Post Views: 17 1. Execute the command line in Windows 10 and report an error: Call to undefined function App\Console\Commands\POSIX_Getpid(). as shown in Figure 1 2. Reference URL:https://www.php.net/manual/zh/intro.posix.php. This extension is not available on...

CakePHP 2.x 版本的部署,Warning: SplFileInfo::openFile(/mcloud/creditshop_back/creditshopback/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /mcloud/creditshop_back/creditshopback/lib/Cake/Cache/Engine/FileEngine.php on line 356。 0

Deployment of Cakephp 2.x version, warning: splfileinfo::openfile(/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to Open Stream: Permission denied in /lib/cake/cache/engine/fileengine.php on line 356

Post Views: 11 1. Deployment of CakePHP 2.x version, warning: splfileinfo::openfile(/mcloud/creditshop_back/creditshopback/app/tmp/cache/persistent/myapp_cake_core_file_map): Failed to open stream: Permission denied in /mcloud/creditshop_back/creditshopback/lib/cake/cache/engine/fileengine.php on line 356. as shown in Figure 1 2. Enter the directory: /mcloud/creditshop_back/creditshopback/app/tmp/cache/persistent, and view...

现在需要基于参数 $groupId 的值,来同步此租户下的用户,即需要让此租户排在第一位。才能够满足需求。先销毁 $sortCmcApiGroupIds 中的 $groupId,再插入至开头。打印排序前后的数组。符合预期 0

In Yii 2.0, the console command line, add the implementation of the parameters

Post Views: 14 1, CMCConsoleUser/ActionSync, existing implementation, reference:https://www.shuijingwanwq.com/2020/03/02/3964/, now need to add parameters: tenant ID 2. The parameter will be passed to the action method corresponding to the requested subcommand. Set the default value...

模拟出 8 条任务。事务ID为 57、58、59、63、64、65、68、69 的同步时间(分钟)分别为:11、12、13、12、11、12、11、12 。事务ID为 57、58、59、63、64、65、68、69 的同步次数分别为:21、22、22、19、17、5、17、17 。事务ID为 57、58、59、63、64、65、68、69 的同步频率分别为:11 * 60 / 21 = 31、12 * 60 / 22 = 33、13 * 60 / 22 = 35、12 * 60 / 19 = 38、11 * 60 / 17 = 39、12 * 60 / 5 = 144、11 * 60 / 17 = 39、12 * 60 / 17 = 42。得出平均值:(31 + 33 + 35 + 38 + 39 + 144 + 39 + 42) / 8 = 50。理论上的计算公式,进一法取整(事务数量 / 5) / 容器数量 * 60。符合预期 0

Deploy and test clusters in Rancher

Post Views: 16 1. In Rancher, clone the existing Docker container channel-pub-api-prev is channel-pub-api-prev-1, channel-pub-api-prev-2, as shown in Figure 1 2. The final 3 containers form a cluster, as shown in Figure 2 3....