Monthly Archive: July 2019

在 Rancher 中升级容器,报错:/config/init/config0.sh: line 1314: syntax error near unexpected token `}' 0

Upgrade the container in Rancher, error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}analysis solution

浏览量: 11 1. Upgrade the container in Rancher and report an error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}, as shown in Figure 1 2. In phpstorm, edit /config/init/config0.sh, prompt: expected a...

现有新的需求,需要支持字段:user_nick 的模糊查询,但是字段:user_nick 不存在于 MySQL ActiveRecord 中,而是存在于 Redis ActiveRecord 中。且 Redis ActiveRecord 不支持 like 操作符。 0

In Yii 2.0, you need to query resources based on MySQL ActiveRecord and Redis ActiveRecord

浏览量: 13 1. In Postman, open the URL:http://api.pcs-api.localhost/v1/plan-config-column-users?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=685f805f71faedfe215f55bbb01b50c6&filter[config_column_id]=1 , only the fields are supported: config_column_id queries, the response is as follows: 2. The SQL statement is as follows: 3. Existing new requirements need to...

在 第 10 步骤执行完毕后,Docker 容器的 CPU:9.9%,内存:541MB,内存增加了 160MB 左右,每 1000 条数据的添加,内存会增加 20 MB 左右。因此,优化的重点在于第 2 个命令行脚本。 0

The command-line script implemented based on Yii 2.0, during the continuous operation, the analysis and solution of excessive memory occupancy

浏览量: 18 1. When the amount of data in MySQL and Redis is small, the CPU of the Docker container: 0.02%, and the memory: 298MB, as shown in Figure 1 and Figure 2 2....

Docker 部署,在 Jenkins 上构建镜像时,报错:composer install returned a non-zero code: 255 0

Docker deployment, modify the directory sobey to mcloud, when building the image, an error is reported: Composer install returned a non-zero code: 255 analysis solution

浏览量: 10 1. Docker deployment, when building an image on Jenkins, an error is reported: composer install returned a non-zero code: 255, as shown in Figure 1 2. The code for the failure of...

查看 \vendor\yiisoft\yii2\i18n\I18N.php,文件映射的类别名:yii、app,始终定义类别 yii 和 app 。前者指的是 Yii 核心中使用的消息框架代码,而后者是指自定义应用程序代码的默认消息类别。其判断类别:app 是否存在,如果不存在,则覆盖,但是,其判断的层级仅为第一级,没有深入至更深的层级,因此,自定义的类别:app 会被覆盖 0

Yii 2 Advanced Project Template, the bug of internationalized messaging service Analysis of @app/messages/en-us/app.php)

浏览量: 12 1. The configuration code of the I18N application components is as follows: 2. Request the interface in Postman, in headers, accept-language:zh-cn, when the target language is Simplified Chinese, and the category name...

现在耗时 18 分钟 0

Enable Alibaba Cloud Composer Full Image in the Global Configuration in a Windows 10/Docker deployment

浏览量: 14 1. Check the list of global configuration options for Composer. Open the command line window and execute the following command: the image address is the official source address. as shown in Figure...