大前端
-
在 Windows 10 64 位下安装 Mingw-w64
1、MinGW 的全称是:Minimalist GNU on Windows 。打开网址:http://www.mingw-w64.org/doku.php/download ,选择 MingW-W64-builds。如图1 图1 2、下载包名:mingw-w64-install.exe。安装时报错:Cannot download …
-
在 CakePHP v2.6.4 中运行:./cake hello,报错:Error Shell class HelloShell could not be found. 的分析解决
1、参考网址:https://book.cakephp.org/2/en/console-and-shells.html ,创建一个简单的 Hello world shell。 在应用程序的 Console/Command 目录中,创建 HelloShell.php。 <?php /** * Created by PhpStorm. …
-
在 MySQL 的 SQL 文件中,定义变量与使用变量
1、现阶段存在一个新需求,需要在部署产品时,针对产品做一些初始化数据的工作。预先准备好相应的 SQL 文件。由于需要执行多条 SQL 语句,且后续的 SQL 语句依赖于之前的 SQL 语句生成的主键 ID。因此,需要在 SQL …
-
在 Rancher 中升级容器,同一个镜像地址,环境变量有容器已被替换,有容器未被替换的分析解决
1、进入环境变量已被替换的容器,某个配置文件,符合预期。如图1 图1 2、进入环境变量未被替换的容器,某个配置文件,不符合预期。如图2 图2 3、查看环境变量已被替换的容器的日志。有相应环境变量已被替换的提示。…
-
在 Yii 2.0 中,服务器的健康检查的实现
1、在 Yii 2.0 中,健康检查的实现,之前有同事实现了一个版本,感觉有必要再调整一下 Yii::$app->db->open(); if(!Yii::$app->redis->ping()) { throw new ServerErrorHttpException('error','Redis i…
-
在 Windows 10 64 位中彻底卸载 Cygwin
1、查看 C 盘,Cygwin 已经安装,C:/cygwin64。如图1 图1 2、在导航中找到 Cygwin64 Terminal,右键 – 卸载。如图2 图2 3、搜索程序和功能:cygwin,结果为空。如图3 图3 4、找到之前的安装包,D:/Soft/setup…
-
在 PhpStorm 中提示:Invalid VCS root mapping 的分析解决
1、在 PhpStorm 中提示:Invalid VCS root mapping。The directory <Project>/vendor/wartron/yii2-uuid is registered as a Git root, but no Git repositories were found there。如图1 图1 2、点击 Config…
-
在 Go 中通过指令编译并安装包到本地:go install uc, 这会将 uc.a 复制到 E:/wwwroot/go/pkg/windows_amd64 下面
1、参考网址:https://www.shuijingwanwq.com/2020/07/02/4288/ 。之前仅能够将代码文件放于:C:/Users/Administrator/go/src 下面才行。放于:E:/wwwroot/go/src 则报错。 2、编辑环境变量 – Administrator 的用户…
-
在 jenkins 中构建镜像时,报错:repository not found: does not exist or no pull access 的分析解决
1、在 jenkins 中构建镜像时,报错:repository registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php72 not found: does not exist or no pull access。如图1 图1 RUN chown -R nginx:nginx /mcloud/www…
-
NAS 存储挂载失败的分析解决
1、在 Rancher 的卷中,添加:/webtv:/data。如图1 图1 2、查看容器的日志,报错:LOG_NAME: unbound variable。如图2 图2 2020/8/3 下午4:40:16/config/init/cronlog.sh: line 5: LOG_NAME: unbound variable 2020…