最近居家家里电脑需要安装项目代码,突然发现apidoc安装不了。遂重新安装 composer require hg/apidoc 后成功 发现 composer.json 文件发生变化 apidoc 版本来到了 v4.1.3通过访问 http://myhost.myhost/apidoc 发现报错了 细究发现可能前端文件可能也升级了。随机搜索了下 发现官网变了。 (新版的地址)[https://docs.apidoc.icu/guide/install/thinkphp.html]找到文档升级了下前端代码,发现仍不能访问 。对比apidoc配置文件 config/apidoc.php 文件 发现 之前apps里的folder 名字改为了 key改完刷新页面出现了 看着比上一版又多了些新功能。
U盘突然有问题 可能是太便宜插在另一台电脑格式化时显示有写保护 windows 使用diskpart工具处理list disk 列出磁盘列表select disk 选中操作盘attributes disk clear readonly 清除写保护状态clean 删除U盘数据create partition primary 建立分区如果U盘容量小于32 GB,输入“format fs=fat32”。如果大于32 GB,输入“format fs=ntfs”。需要等待完成exit 退出解决方案
由于项目时间线比较长 git clone http://github.com/large-repository --depth 1克隆时只下载一条解决方案
踩的坑 第三步,配置云服务器的安全组的端口,放行 FTP 协议默认端口 21 和 FTP 被动端口范围 39000-40000参考链接如何指定FTP被动模式下数据传输端口的选择
查找 $controller = strip_tags($result[1] ?: $config['default_controller']); 后面新增代码如下:if (!preg_match('/^[A-Za-z][\w\.]*$/', $controller)) { throw new HttpException(404, 'controller not exists:' . $controller); }参考1参考2
风里来
最后,我终于解放了我自己……