Category: Programming Language
-
Post Views: 111 1. Laravel Sail requires Windows 10 systems that support WSL 2. The 2004 version released in May 2020 only supports the WSL 2 function, so our system needs to be updated to the 2004 version equal to or greater than the 2004 version. To view the system version, you can use the winver command, refer to Windows…
-
Post Views: 18 1. In Windows 10 Professional, PHP cannot run the troubleshooting analysis. Execute the command: php-cgi.exe -b 127.0.0.1:9000-c c:/php-7.4.27/php.ini , automatically exit. as shown in Figure 1 2. Install the Visual C++ 2015 runtime 64-bit, as shown in Figure 2 3. Execute the command again: php-cgi.exe -b 127.0.0.1:9000-c c:/php-7.4.27/php.ini, error: php warning:vcruntime140.dll14.0 Is not compareable with this php…
-
Post Views: 18 1. Reference URL:https://www.shuijingwanwq.com/2017/01/08/1505/, the process of realizing the locking mechanism of Redis under Yii2.0, its core is to use Redis SetNX. 2. Generally speaking, after the lock is successful, the corresponding business logic is executed, and then the lock is deleted. However, if the business logic is accidentally exited for some reason, resulting in a lock but…
-
Post Views: 16 1. In the past few days, an interview question during the computer test, design a high-precision addition function, which supports the addition of long numbers without losing the accuracy, and ignores negative numbers (please do not use BCADD and other built-in functions). 2. Check php official website, bcadd – the addition calculation of two arbitrary precision numbers.…
-
Post Views: 15 1. After the basic image of the container is replaced, when the RANCHER environment variable, CHANNEL_PUB_API_CFG_MIGrate=true, the container starts failure. Error: php core warningYii\Base\ErrorExceptionwith messagemoduleGDalready loaded. as shown in Figure 1 2. When the RANCHER environment variable, channel_pub_api_cfg_migrate=false, the container starts successfully. as shown in Figure 2 3. When the RANCHER environment variable, channel_pub_api_cfg_migrate=true, is essentially executing…
-
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 the CSP environment. In the CSP environment, the 2 containers of the COM environment have been merged into one container. And a new container has been…
-
Post Views: 17 1. Query sql error: sqlstate[42000]: Syntax Error or Access Violation: 1055 expression #2 of select list is not in group by clause and contain Nonaggregated Columnmodel.group_idwhich is not functionally depend on columns in group by cluse; as shown in Figure 1 2. Connect mysql in the container and execute the command: mysql -h127.0.0.1 -u username -p password.…
-
Post Views: 19 1. The HTTP request failed, and an error is reported: CURL Error: #55 – TCP Connection Reset by Peer. When requesting the Penguin video file sharding upload interface. as shown in Figure 1 2. View the size of the video file: 1554129526 / 1024 / 1024 = 1482.13 MB. as shown in Figure 2 3. View the…
-
Post Views: 49 1. Composer detected issues in your platform: your composer dependencies require a php version “>= 7.3.0”.. Composer detects a problem in your platform: your composer dependency requires the PHP version of “>= 7.3.0”. as shown in Figure 1 2. The root cause is that the program needs to be deployed on the cloud server of Huawei Cloud’s…
-
Post Views: 18 1. At this stage, there is a requirement, and it is necessary to send the corresponding operation logs generated to the log system of the middle platform in an interface call. The log system interface of Zhongtai supports multiple log records at the same time. Therefore, it is decided to plan to first save the generated N…