原因是在window环境编辑会有特殊字符,解决办法:sed -i'' "s/\r//" file_name…
遇到一个问题: 在命令行编辑php脚本后,直接使用php命令行执行该php脚本,如果脚本出现错误,在命令行的情况下会报错,显示错误信息,比如下面的情况. [root@localhost wwwroot]# cat index.php <?php show; [root@localhost wwwroot]# php index.php PHP Notice: Use of undefined constant show - assumed 'show' in /home/wwwroot/inde…
LR调试bbs脚本的时候报错: 1.Error -27796: Failed to connect to server "192.168.211.128:80": [10060] Connection timed out  [MsgId: MERR-27796] 2.web_url("bbs") highest severity level was "ERROR", 0 body bytes, 0 header bytes  [MsgId: MM…
Java+Selenium 上传文件,点击选择"浏览文件"按钮,报错invalid argument 解决代码: Actions action=new Actions(driver); action.click(driver.findElementByName("file")).build().perform(); 参考解决连接:https://blog.csdn.net/u012150449/article/details/109457495…
Maven报错Archive for required library:某.jar' in project '项目名'cannot be read or is not a valid ZIP file 报错信息:项目出现红色叉号 报错原因:maven自动下载的依赖包错误 解决方法:eclipse顶部–>窗口–>显示视图–>其他–>问题 出现这个视图后,查看错误提示信息,找到错误文件路径,手动删除即可.…
mysql报错Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage 在执行create table  xx  as  select xx的时候 或者在执行 tpcc-mysql的tpcc_load 的时候 都会遇到这个错误 1534, HY000, Writing one row to the row-based binary log failedRetrying ... 1…
在ubuntu18.04下安装Android Studio,安装了模拟器后运行报错 KVM is required to run this AVD. /dev/kvm device: permission denied. 即当前用户对/dev/kvm无权限,所以/dev/kvm 文件需要配置权限组到当前登录账号.终端配置以下命令, sudo chown g -R /dev/kvm 为了能开机自动配置该命令,就需要效仿配置Java环境变量的方式.在.bashrc 文件进行配置,以便开机启动自动执行…
在学习Spring-boot-mybatis时,报错A component required a bean of type 'com.sirifeng.testmybatis.mapper.BookMapper' that could not be found. 后来发现是在启动器上没有添加注解 @MapperScan("com.sirifeng.testmybatis.mapper")如有这个错误的可以看一下是不是因为这个原因.…
在Shell脚本中,往往会遇到一些判断类型为某个值不符合预期值的时候就退出主脚本/当前脚本/当前函数,那么Exit与return的用法与区别是什么呢? 下面先使用Exit举个简单例子,脚本内容如下 #!/bin/bash if [[ "$1" == "1" ]];then echo "your input is $1" else echo '退出' exit 0 fi echo '最后一句' 第一种执行方法: 使用Shell解析器进行调用,结果如…
同一脚本sh 脚本名 执行时报Syntax error: "(" unexpected:而./脚本名执行不报错,为什么呢 脚本内容如下: function usage(){ echo "usage:$0 url" exit } function check_url(){ -T $ ] then echo "$1 is ok" else echo "$1 is not ok " fi } function main(){ ] t…