Category: Redis
-
Post Views: 20 Let’s talk about my site first: personal technical blog, WordPress 7.0 construction, with Polylang bilingual plug-in, there are only about 2,000 text articles, butThe number of labels is as high as 18000+. It is also this massive tab page that makes my 1-core 2G Alibaba Cloud ECS frequently roll over, the most serious June 3, a single…
-
Post Views: 18 Seamlessly migrate from Windows WSL2 to Ubuntu bare metal, build Go development environments based on existing MySQL/Redis containers, and access custom networks. 📌 Preface I have been learning in Windows 10 + WSL2 before go-gin-learning Project, now to brand new Ubuntu 26.04 system. I hope to continue to use Docker to isolate the sending environment, and at…
-
Post Views: 20 This article is a development environment for the ‘From Windows to Ubuntu: Complete Guide to Migration and Configuration’ series.It is suitable for developers who have completed the Ubuntu system installation and hope to build an efficient, isolated and multi-version database environment. Why use Docker to manage databases? Under Windows, I am used to running a separate database…
-
Post Views: 27 The background of the problem I run a WordPress-based bilingual website (Chinese/English), using polylang Plugins to manage multilingual content. In order to create corresponding English translations for existing Chinese categories/labels in batches, I wrote a php script polylang-batch-zh-to-en-tags.php. However, when executing the script, the terminal suddenly reported a fatal error: The script crashes directly and cannot continue…
-
Post Views: 70 1. Reference:Install Hyperf under Docker in WSL-Ubuntu. Now startup fails:[ERROR]RedisException: Connection refused. as shown in Figure 1 2. The hyperf connection redis fails, and the high probability is caused by one of the following three (redis is not started / the address is wrong / the port is not connected). I am now in the local development…
-
Post Views: 72 1. Redis officially does not have native installation packages under Windows. as shown in Figure 1 2. Reference:The project is no longer actively maintained. If you are looking for a Windows version of Redis, you may need to check Memurai. Please note that Microsoft does not officially recognize the product in any way. Decided to use memurai.…
-
Post Views: 23 1. Try to pass multiple fields/values based on the Redis facade Hset, the code is implemented as follows 2. Error during operation: local.error: err wrong number of arguments forhsetcommand. as shown in Figure 1 3. However, starting from Redis 4.0, HSET can set one or more field/value pairs at a time. Since Redis 4.0.0, HMSET is discarded,…
-
Post Views: 15 1. In Laravel 9, after executing redis::set($this->rules_update_key, carbon::now()); and found that the written value is Object. as shown in Figure 1 2. But in the test environment, the written value is a datetime string. Its value: 2024-01-30 06:00:00. as shown in Figure 2 3. The final comparison found that the root of the difference is that in…
-
Post Views: 17 1. Reference:https://www.shuijingwanwq.com/en/2022/12/13/9977/. Run .sh or shell script files using WSL in Windows 10. Ultimately not realized. 2. Reference:https://www.shuijingwanwq.com/en/2021/12/23/9949/, to step 7 3. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 4. Ubuntu will mount or provide all Windows directories under /mnt. Hence the C…
-
Post Views: 86 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command: bash test.sh . run successfully. as shown in Figure 1 5. The existing Themes.sh file, the code is as follows 6. Error at runtime: syntax…