Category: Windows 10
-
Post Views: 18 1. Composer has been installed before, to ensure the latest version is used. You can update Composer to version 1.9.2 by running composer self-update, as shown in Figure 1 2. Updating Yii 2 to the latest version by running Composer Update, the Yii Framework has been upgraded from version 2.0.15.1 to 2.0.31, as shown in Figure 2 3. View Yii Framework 2.0 upgrade instructions online:https://github.com/yiisoft/yii2/blob/2.0.31/framework/UPGRADE.md, understand the changes that may not be compatible, for example, extend some classes, and the properties and methods of these classes are adjusted in the new version. as shown in Figure 3…
-
Post Views: 16 1. Composer installation: nicolab/php-ftp-client reports an error: The requested php extension ftp is missing from your system, as shown in Figure 1 2. The Windows version of PHP has built-in support for this extension. Edit C:\PHP-7.2.14\php.ini, enable extension: FTP 3. Install again, the installation is successful, as shown in Figure 2
-
Post Views: 11 1. Refer to the Go guide, web server, write file: web-servers.go 2. Accesshttp://localhost:4000/When prompted: The website cannot be accessed, as shown in Figure 1 3. Run in PowerShell: go run web-servers.go, visit againhttp://localhost:4000/When, the output: hello!, as shown in Figure 2
-
Post Views: 12 1. Check the Go file: exercise-maps.go, the code is as follows 2. Run the file, Go reports an error: exercise-maps.go:4:2: Cannot find package “code.google.com/p/go-tour/wc” in any of: C:\Go\src\code.google.com\p\go-tour\wc (from $goroot) C:\Users\Administrator\Go\src\code.google.com\p\go-tour\wc (from $gopath), as shown in Figure 1 3. Open the URL of Go Tour on GitHub:https://github.com/golang/tour, after turning on the blue light connection, install the go tour based on the source code, and an error is reported: unrecognized import path “golang.org/x/tour”, ping golang.org, prompts the request timeout, as shown in Figure 2 4. Open the URL in Chrome:https://golang.org/, it can be opened normally, as shown in…
-
Post Views: 14 1. For Windows users, the Go project provides two installation options (except from the source code installation): The ZIP archive requires you to set some environment variables, and the experimental MSI installer will automatically configure your installation. Open URL:https://studygolang.com/dl, download the MSI installer, as shown in Figure 1 2. Download the file: go1.13.4.windows-amd64.msi, right-click -> install, as shown in Figure 2 3. Install the Go programming language AMD64 go1.13.4 to:, use the default value: C:\Go\ , as shown in Figure 3 4. Test your installation and check whether the GO is installed correctly by building a simple…
-
Post Views: 13 1. On the develop branch in the local environment, execute the console command and report an error: as shown in Figure 1 2. Since this bug has been fixed in a single commit (EE8290) on the feature-netease branch, as shown in Figure 2 Therefore, it is decided to merge a single commit (EE8290) on the develop branch on the feature-netease branch based on TortoiseGit . 4. View the commit on the develop branch on GitLab, as shown in Figure 3 5. View the commit on the feature-netease branch on GitLab, as shown in Figure 4 6. In…
-
Post Views: 15 1. In the console command of Yii 2.0, an error is reported: yii\db\exception: redis error: err Invalid DB index Redis command was: Select 29 in /vendor/yiisoft/yii2-redis/src/connection.php:736, view /console/runtime/logs/app.log 2. The analysis found that when executing the command: Select 29, switch to the corresponding database: 29 errors, and a Redis instance has 16 databases by default, from 0 – 15, it will report err if it exceeds this range. Invalid DB index, as shown in Figure 1 3. Edit redis.windows.conf and redis.windows-service.conf files, find: databases 16, modify to: databases 32 4. In Windows 10, stop and start Redis…