Category: WSL
-
Post Views: 63 1. Background: Why do this environment In order to learn AI programming tools (such as Tongyi Spirit Code), I am going to implement a ‘Music Alarm Clock’ small project.Before starting coding, I set up a reusable python dev container development environment. 2. Description of the technology stack 3. Project catalog structure (core focus) music-alarm/├── .devcontainer/│ └── devcontainer.json├──…
-
Post Views: 42 1. Reference: Build a RESTful API (go.dev) with Go and Ginhttps://go.dev/doc/tutorial/web-service-gin— Go official tutorial for building simple web services with GIN. 2. Install Go. Docker Compose One-click startup (refer to Hyperf project). I want to ‘write a good configuration, a command starts the entire development environment’, which is most convenient to use docker-compose.yml, which is almost the…
-
Post Views: 31 Step 1: Create a local project directory in WSL (such as ~/wwwroot/hyperf-skeleton) 2. Modify the mount directory and adapt the path to the local directory. Reference:Hyperf official documentation development under Docker . 3. Create a project in the container, the creation of the project fails, and an error is reported: Your requirements could not be resolved to…
-
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: 15 1. When executing: npm run build, an error is reported: ln -sf ../frontend/dist/assets public/assets,lnIs not recognized as an internal or external command, operatorable program or batch file. . as shown in Figure 1 2. Since the Windows system does not support it, I finally decided to execute this command in the Ubuntu-20.04 system in WSL2. Tip: No…
-
Post Views: 22 1. Reference:Install PHP, its version defaults to PHP 7.4 2. Uninstall PHP 7.4 and its dependencies first 3. Reference:How to install and run PHP 8.x on Ubuntu 20.04. Add the PHP PPA repository. Install PHP 8.1 using the following command. 4. Install PHP 8.1 successfully. as shown in Figure 1
-
Post Views: 36 1. Reference:Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional, check in advance whether the corresponding requirements are met . 2. Reference:The requirements in Linux are as follows 3. Node.js is not installed, refer to:Installation . Installation failed. 4. Execute the command: sudo apt-get update 5. Execute the command again: sudo apt-get install -y nodejs,…
-
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…