Monthly Archive: March 2020

在 Postman 中 GET 请求:{{channel_pub_api_host_info}}/qq{{channel_pub_api_base_url}}/qq-cw-apps?group_id=015ce30b116ce86058fa6ab4fea4ac63 ,实际请求网址:http://api.channel-pub-api.localhost/qq/v1/qq-cw-apps?group_id=015ce30b116ce86058fa6ab4fea4ac63 ,环境变量已被替换,符合预期。 0

Set and use variables in Postman, when you need to update the value, you only need to make changes in one location, no need to make changes in multiple locations

浏览量: 12 1. Open the URL of the variable and environment variable:https://learning.postman.com/docs/postman/variables-and-environments/variables/, variables and environment variables. With variables, variables allow you to store and reuse values in requests and scripts. as shown in Figure...

编辑 Nginx 配置文件,修改 server_name 的值:api.channel-pub.wjdev.chinamcloud.cn localhost,以在一个请求(https://api.channel-pub.wjdev.chinamcloud.cn)中 CURL 另一个请求(http://localhost)(总计请求次数为 7),直接请求本机,以节省网络开销。其总体响应时间长度为:1956ms,2 秒左右,符合预期。 0

Nginx + PHP-FPM serial, parallel support analysis, test and solution of serial and parallel support under Windows 10 and CentOS 8

浏览量: 14 1. Nginx + php-fpm in the case of Windows 10, when in a request (http://api.channel-pub-api.localhost)中curl another request (http://api.channel-pub-api.localhost)时,报错:fopen(http://api.channel-pub-api.localhost/qq/v1/articles/standard?group_id=015ce30b116ce86058fa6ab4fea4ac63):Failed to open stream: HTTP request failed! . as shown in Figure 1 2. Edit...

查看 api 应用的 Log Messages,分别请求了 2 次 企鹅号与 1 次 微信。 0

In Yii 2.0, one-key multi-channel publishing (that is, in one interface request, batch call multiple interface requests) is implemented

浏览量: 14 1. In the previous release interface, only one channel is supported for a release. Therefore, the release of the three channels needs to call the interface (APP, Netease account, Weibo) 3 times...

参考网址:https://www.shuijingwanwq.com/2019/12/28/3784/ ,在 cmd 中设置 HTTP 代理,再次执行安装命令,安装成功 0

Installation based on composer: jamesheinrich / getid3, prompts ( ssl: handshake timeout; unable to enable encryption; unable to open stream: operation failed)

浏览量: 11 1. GetID3() is a PHP script that extracts useful information from MP3 and other multimedia file formats. Open URL:https://github.com/JamesHeinrich/getID3 2. Install based on composer: jamesheinrich / getid3. The URL to open the...

模拟出 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

浏览量: 14 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. In...

查看 Console,报错:Access to XMLHttpRequest at 'https://verify.snssdk.com/reportError' from origin 'https://www.toutiao.com' has been blocked by CORS policy: Request header field ra-ver is not allowed by Access-Control-Allow-Headers in preflight response. 0

In the Google Chrome browser, after Toutiao is opened, a blank analysis is solved

浏览量: 87 1. In the Google Chrome browser, after today’s Toutiao is opened, it is blank, as shown in Figure 1 2. Check the console, report an error: access to xmlHttpRequest athttps://verify.snssdk.com/reportErrorfrom originhttps://www.toutiao.comHas been...

在 bash sleep 60 秒 的情况下,很难出现并发锁定的情况。或者增加更多的容器,或者提升执行命令行的频率。设置 bash sleep 10 秒。已经出现并发锁定(防止同一个租户下的用户同步同时在多个容器中执行)的情况。当部署为集群时,已经可以保证同一个租户下的用户同步,在某一时间段,仅在 1 个容器中执行。理论上的计算公式,一个租户的同步时间间隔为:4 / 3 * 10 = 13,结果单位为秒。符合设计预期。总结:部署的容器数量不要超过租户的数量,以防止并发锁定的情况过于频繁。 0

In Yii 2.0, the cluster implementation of the console commands, the lock implementation of the Redis model (to ensure that even if multiple servers are running the command line, the tasks run by each server are not repeated to improve the overall processing performance of the command line)

浏览量: 16 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is, each...