Category: PowerShell

在 Windows PowerShell 中执行 yarn 相关命令时报错:不允许使用与号(&) 0

Error when executing YARN-related commands in Windows PowerShell

Post Views: 45 1. An error is reported when executing YARN-related commands in Windows PowerShell: & as shown in Figure 1 2. Decide to replace & with “&”, and then execute: after the yarn...

通过 GET 请求对 GitHub GraphQL API 架构运行内省查询。在 PowerShell 中执行 curl 请求:Invoke-WebRequest 无法绑定参数“Headers” 0

Execute curl request in PowerShell: invoke-webrequest cannot bind parameter “headers”

Post Views: 82 1. Run an introspective query to the GitHub GraphQL API schema through the GET request. Execute a curl request in PowerShell: invoke-webrequest cannot bind the parameter “headers”. as shown in Figure...

在 Chrome 浏览器中打开网址:https://localhost/phpinfo.php ,访问成功,符合预期。 0

Configure https(https://localhost) on the local environment of Windows 10, based on MKCERT

Post Views: 60 1. Now the local environment URL: http://morefun.dev.dev.xxx.cn/ I want to get the cookie data under the development environment: https://.xxx.cn, but found that it cannot be obtained. The reason is the difference...

打开 Windows PowerShell,运行命令:gcc -v,将会显示 Mingw-w64 的组件列表。安装成功。 0

Install MinGW-W64 under Windows 10 64 bit

Post Views: 13 1. The full name of MinGW is: Minimalist GNU on Windows. Open URL:http://www.mingw-w64.org/doku.php/download, select MinGW-W64-Builds. as shown in Figure 1 2. Download the package name: mingw-w64-install.exe. Error during installation: cannot download...

参考网址:https://github.com/unknwon/the-way-to-go_ZH_CN/blob/master/eBook/09.8.md 。通过指令编译并安装包到本地:go install uc, 这会将 uc.a 复制到 E:\wwwroot\go\pkg\windows_amd64 下面。 0

Compile and install packages in Go locally in Go: Go install UC, which will copy uc.a to e:\wwwroot\go\pkg\windows_amd64

Post Views: 14 1. Reference URL:https://www.shuijingwanwq.com/2020/07/02/4288/. Previously, the code file could only be placed below: C:\Users\Administrator\Go\Src. Put it in: E:\wwwroot\go\src will report an error. 2. Edit the environment variable – the user variable of...

在 /vendor 目录中搜索:.git,不存在相应的目录。而之前执行命令:composer install。未成功运行。在 /vendor 目录中搜索:.git,存在相应的目录。 0

After adding /vendor to the git repository, docker deploys, the analysis of the upgrade failed

Post Views: 13 1. Edit .gitignore and add /vendor to the git warehouse, as shown in Figure 1 2. Failed to build in Jenkins, check Console output. as shown in Figure 2 3. Docker...

参考网址:https://www.shuijingwanwq.com/2019/12/28/3784/ ,在 cmd 中设置 HTTP 代理,再次执行安装命令,安装成功 0

Installation based on composer: jamesheinrich / getid3, prompts ( ssl: handshake timeout; unable to enable encryption; unable to open stream: operation failed)

Post Views: 12 1. GetID3() is a PHP script that extracts useful information from MP3 and other multimedia file formats. Open URL:https://github.com/JamesHeinrich/getID3 2. Install based on composer: jamesheinrich / getid3. The URL to open...

在 bash sleep 60 秒 的情况下,很难出现并发锁定的情况。或者增加更多的容器,或者提升执行命令行的频率。设置 bash sleep 10 秒。已经出现并发锁定(防止同一个租户下的用户同步同时在多个容器中执行)的情况。当部署为集群时,已经可以保证同一个租户下的用户同步,在某一时间段,仅在 1 个容器中执行。理论上的计算公式,一个租户的同步时间间隔为:4 / 3 * 10 = 13,结果单位为秒。符合设计预期。总结:部署的容器数量不要超过租户的数量,以防止并发锁定的情况过于频繁。 0

In Yii 2.0, the cluster implementation of the console commands, the lock implementation of the Redis model (to ensure that even if multiple servers are running the command line, the tasks run by each server are not repeated to improve the overall processing performance of the command line)

Post Views: 16 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is,...

访问 http://localhost:4000/ 时,提示:无法访问此网站 0

Go Guide, Web Server, Accesshttp://localhost:4000/can’t access the analysis of this website

Post Views: 8 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,...