Category: Web Application Development
-
Post Views: 22 1. In the local development environment, Laravel Sail has been deployed based on the deployment. Open URL:http://weibo.test/, the response 200. as shown in Figure 1 2. Register a Heroku account and use @163.com to find that it is not allowed, and finally use @gmail.com, the registration is successful. as shown in Figure 2 3. Click the link…
-
Post Views: 57 1. Install Nginx Proxy Manager, open the Windows Terminal command line, and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Enter the user root directory, create a new directory: proxy-manager, enter the directory: proxy-manager, create a file: docker-compose.yml. as shown in Figure 2 3. Edit the file: docker-compose.yml, save and…
-
Post Views: 16 1. In the Ubuntu system in WSL2, execute the command: sudo apt install php7.4-cli, report an error: e: failed to fetchhttp://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu2.5_amd64.deb404 Not Found[IP: 91.189.88.152 80]. as shown in Figure 1 2. Based on the prompt information, run apt-get update. as shown in Figure 2 3. Execute the command again: sudo apt install php7.4-cli, no error is reported.…
-
Post Views: 16 1. Use Composer to create an application called weibo. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Ubuntu, as a Windows subsystem, can access the hard disk under the main system. In order to facilitate the management code, I have already created the…
-
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. 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: 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. The error is reported when uploading the picture file, because the picture in GIF format is uploaded, which is treated as a JPEG format. as shown in Figure 1 2. Check the corresponding code implementation. 3. Decide to judge the extension of the file after receiving the request. Reference URL:https://github.com/symfony/symfony/blob/3.0/src/Symfony/Component/HttpFoundation/File/UploadedFile.php. Returns the original file extension. How…