Category: PHP
-
Post Views: 59 1. Reference URL: https://commaster.net/content/installing-memcached-windows, as shown in Figure 1 2. Download: http://downloads.northscale.com/memcached-1.4.5-amd64.zip, as shown in Figure 2 3. Unzip to: C:\memcached-1.4.5, as shown in Figure 3 4. Run Windows PowerShell as an administrator, as shown in Figure 4 5. Execute the following command to add memcached to the task plan table: as shown in Figure 5 schtasks…
-
Post Views: 76 1. Open the URL: https://wiki.swoole.com/wiki/page/7.html , check the environment dependencies, as shown in Figure 1 environment dependence Only supports Linux, FreeBSD, macOS, 3 types of operating systems Linux kernel version 2.3.32 or above php-5.3.10 and above, including php7 GCC4.4 or above or clang CMake2.4+, you need to use CMake when compiling to libswoole.so as a C/C++ library…
-
Post Views: 16 1. Install Laravel by running the create-project command on the command line by composer, and run the command:composer create-project –prefer-dist Laravel/Laravel Laravel, as shown in Figure 1 2. Generate directory: E:\wwwroot\Laravel, as shown in Figure 2 3. Using nginx, adding the following code to the website configuration will forward all requests to the index.php front-end controller, as…
-
Post Views: 14 1. Open the URL:http://www.yii2-app-advanced.dev/, the error directory: E:\wwwroot\yii2-app-advanced/vendor\bower/jquery/dist does not exist, as shown in Figure 1 2. Open e:\wwwroot\yii2-app-advanced\vendor , and confirm that the directory bower does not exist, as shown in Figure 2 3. Check the composer installation prompt and find that the bower has been replaced with the bower-asset directory, which is normal, as shown…
-
Post Views: 12 1. In APM monitoring, due to Alibaba Cloud’s get URL/request, a large number of 404 responses are caused, which has a certain interference to the operation and maintenance work, as shown in Figure 1 2. Request in Postman:http://api.kaiqiu_shujujiexi_api.dev/, response 404, as shown in Figure 2 3. When the request is resolved to an empty route, the so-called…
-
Post Views: 15 1. Define: Data Layer: Models are used to define data-related automatic verification and auto-completion and data access interfaces. Logic Layer: Logics is used to define data-related business logic. 2. Create a new logics directory in the common directory, which is used for the logical layer of the mysql model, as shown in Figure 1 3. Create a…
-
Post Views: 15 1. At 2017-06-18 19:36:00, that is, when the game starts, the response time of the application is 51.8ms, and the response time is normal, as shown in Figure 1 2. During the entire football game, the response time is increasing linearly, at 2017-06-18 20:30:00 to 2017-06-18 At 20:40:00, the response time decreased because the game was in…
-
Post Views: 12 1. Compatibility goal: adjust the response of the flying flow to the response specification of the body (convert the field type of the non-array to a string), and be backwards compatible Note: If the version of the requested headers does not exist or the version exists and the version is greater than or equal to 2.1, the…
-
Post Views: 14 1. Copy\vendor\yiisoft\yii2\console\controllers\cacheController .php to \console\controllers\luagameteamskillController.php, as shown in Figure 1 2. Rename \console\controllers\luagameteamskillcontroller.php to \console\controllers\luagameteamskillcontroller.php, as shown in Figure 2 3. Modify the namespace to namespace console\controllers;, and the class name is modified to luagameteamskillController, as shown in Figure 3 4. Only keep ActionIndex(), other methods are deleted, as shown in Figure 4 5. In Windows PowerShell,…