- 博客(17)
- 收藏
- 关注
原创 PHPStorm 配置 debug 默认参数
背景 开发中使用到 swoole,可是它与 xdebug 冲突,所以不可以使用,需要使用 Yasd,可是 Yasd 在 debug 时,需要加上 -e 参数,然而,在进行单元测试时,需要每次手动加上 -e 参数,这样很不方便,经过一系列的查找,终于找到了解决方案, 这样就不用手动加了,可以配置成模板: 第一: 第二: 第三: 结束 这样就可以直接进行 debug 了。。。。。。 ...
2021-08-06 17:50:27
295
原创 微信小程序flex长文本溢出
wxml <view class=""> <view class="detail-wrap main-padding"> <view class="detail-label-wrap"> <text>名称</text> </view> <view class="detail-content-wrap"> <text>内容内容内容内容容内容内容内容fsfs..
2021-07-17 20:05:27
352
原创 mac LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
系统: mac,10.15.6 在使用 git 拉取或提交代码时,发现如下错误: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 到网上找了 N 种方案
2021-06-19 00:26:14
1703
原创 windows 使用 nginx 命令报错: nginx: [emerg] CreateFile() logs/nginx.pid
系统: win7 nginx:1.17.10 命令行客户端: 在使用 命令行启动时, 报如下错误: 1. 在 nginx 的目录下创建一个 nginx.sh 脚本(名字可以自定), 内容如下 #!/bin/bash current_dir=$(dirname $(readlink -f "$0")) params="" for i in "$@"; do params="${params} $i" done cd /d/soft-ins/nginx-1.17.10 ./ng...
2020-05-30 14:39:00
9899
原创 windows Probably xdebug.remote_host=docker.for.win.localhost is incorrect
系统: win7 在使用 phpstorm + docker 进行 cli debug 时, 报windows Probably 'xdebug.remote_host=docker.for.win.localhost' is incorrect 错误 把这个值改成本机 IP 就可以了
2020-05-29 19:15:12
466
原创 seata 注册 nacos 失败 ErrMsg:failed to req API:/api//nacos/v1/ns/instance
seata 注册到 nacos , 在 seata 时报如下错误: 2020-04-26 10:55:14.530 ERROR[main]io.seata.server.Server.main:95 -rpcServer init error:ErrCode:500, ErrMsg:failed to req API:/api//nacos/v1/ns/instance after all s...
2020-04-26 11:18:28
10306
原创 servlet 页面中文乱码
页面: 代码: protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter out = resp.getWriter(); out.println("<html...
2018-10-02 20:12:18
986
原创 yii2 The file or directory to be published does not exist
在安装 yii2 后,初始化也弄好,然后直接页面,报了类似错误: The file or directory to be published does not exist 解决方法: 1.把 fxp/composer-asset-plugin 更新到最新版本(我当时的是:1.4.2) fxp/composer-asset-plugin 的地址 : https://packagi
2017-12-11 23:22:52
1173
原创 mac plugin 'innodb' init function returned error. mariadb
在 mac 用 brew 安装 mariadb 成功后( 先把原有的 mysql 卸载 ),然后启动 mysql, 结果报如下的错: 2017-02-24 22:13:27 140735232917504 [Note] mysqld (mysqld 10.1.21-MariaDB) starting as process 1002 ... 2017-02-24 22:13:27 14073
2017-02-24 22:19:58
1554
原创 linux 安装 composer 提示 "If possible you should enable it or recompile php with --with-openssl"
在安装 composer 的时候( 我的系统是 ubuntu ), 出现了 " Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again: The openss
2017-02-17 15:03:30
2506
翻译 react native -FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null)
在 mac 下, 运行 react-native run-android 时, 报 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) 等的错误, 我在网上找到的解决办法是 安装 watchman brew install watchman 参考链接: https:/
2017-01-07 16:22:35
1363
原创 yii2 在控制器重写 beforeAction() 方法时,behaviors 失效的原因
我在控制器中重写父类的 beforeAction() 方法时, 遇到了这样的一个问题,我在 behaviors() 里定义好 行为了(必须要登录才可以访问当前控制器下所有的 action), 可是奇怪的是,我没有登录也可以访问,我确定我的 behaviors() 的配置正确的,可它就是不起作用,找了好久才找到原因,原来是问题出在 重写的 beforeAction() 里, 因为 我在重写 be
2017-01-01 21:04:31
6169
转载 Yii2: Not Found (#404):Unable to find debug data tagged
yii2 开启 debug 模式在页面右下角不显示调度按钮,并在 控制台报 Yii2: Not Found (#404):Unable to find debug data tagged ... 时 把 frontend/runtime 下的 degun 目录删除了就可以了; 其中 frontend 指定的是应用目录, 如果是其它应用,以此类推; 比如是后台应用出错, 则把 backe
2016-12-19 21:23:00
3407
原创 react-native ( om.android.support:appcompat-v7:23.0.1.)
react-native init projectName 出现 Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:appcompat-v7:23.0.1. 解决方法: // 在android sdk manager上
2016-07-21 00:36:37
1765
原创 react-native init 项目后出现 unexpected token <
在执行 react-native init projectName 初始化项目后, 通过 react-native run-android 初始启动项目时,出现了 "unexpected token 我的解决方法: npm install babel-loader babel-core babel-preset-es2015 babel-preset-react --save-dev
2016-07-21 00:08:31
3940
原创 ubuntu14.0(linux) 安装 apache2.4+ 报 apr not found
当我在 ubuntu 安装 apache2.4, 在编译的时候,报了 apr not found 的错误,可是奇怪的是, apr 已经安装好的.并且在编译的时候也指定了 --with-apr=路径 当出现在这种情况,我是这样解决的, 到 https://apr.apache.org/download.cgi 上面下载最新版的 apr 和 apr-util 包,然后解压,把 apr 的源码复制
2015-09-29 21:41:11
837
原创 git 从储藏中创建分支
查看储藏列表: git stash list 从储藏中创建分支: git stash branch 分支名称; 如果要从指定的储藏中创建分支,则要在最后加一个参数,这个参数就是对应的储藏标识(stash@{*}): 如: git stash branch 分支名称 stash@{0} 如果不加最后一个参数,则默认是最后一次的储藏;
2015-08-13 20:54:24
564
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人