线上环境须要按期清理缓存,以下:
html
[root@LB scripts]# curl http://10.238.74.31/irm/manualDataSyncPage!synchronizeCrmGroupCustomerInfo.html?UserName=004&Password=ZHzg-123 shell
-bash: !synchronizeCrmGroupCustomerInfo.html?UserName=004: event not found缓存
“!”在平常命令中能够做为调用history历史记录来使用执行某行内容,在shell里为特殊字符。bash
在执行curl "http://10.238.74.31/irm/manualDataSyncPage!synchronizeCrmGroupCustomerInfo.html?UserName=004&Password=ZHzg-123"的过程当中,发现“!”没法被正常解析,加上转义反斜杠“\”也没用。curl
[root@LB scripts]# curl http://10.238.74.31/irm/manualDataSyncPage\!synchronizeCrmGroupCustomerInfo.html?UserName=004&Password=ZHzg-123ide
-bash: !event not foundui
后发如今“!”先后加入空格能够解决这个问题,但还不够完美,由于输入的文件字符也是加了空格后的,感受占用较长地方,现象以下:url
[root@LB scripts]# curl "http://10.238.74.31/irm/manualDataSyncPage ! synchronizeCrmGroupCustomerInfo.htmlme=004&Password=ZHzg-123"spa
最后尝试双引号与反斜杠同时使用,完美解决问题!具体以下:htm
[root@LB scripts]# curl "http://10.238.74.31/irm/manualDataSyncPage"\!"syncronizeCrmGroupCustomerInfo.html?UserName=004&Password=ZHzg-123"
<html>
<head>
<title>system.title</title>
<script>
var hexA0s = unescape(' %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0 %A0');
hexA0s = hexA0s + hexA0s + hexA0s + hexA0s;
hexA0s = hexA0s + hexA0s + hexA0s + hexA0s;
hexA0s = hexA0s + hexA0s + hexA0s + hexA0s;
document.title = 'system.title' + hexA0s + hexA0s;
hexA0s = null;
</script>
<meta http-equiv="Pragma" Content="No-cach"></meta>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>