在用spring配置文件applicationContext.xml中引入src下的properties文件 <context:property-placeholder location="classpath:jdbc.properties"/> <!-- DriveManagerDataSourc ...
分类:
数据库 时间:
2020-12-03 11:37:52
阅读次数:
11
缘由:A项目用HttpURLConnection代理(B项目)内部接口的时候,返回值正常; 由于要走负载,nginx代理了几个A项目,通过nginx访问的时候,页面显示ERR_EMPTY_RESPONSE; nginx报错upstream sent invalid chunked response ...
分类:
其他好文 时间:
2020-12-03 11:34:06
阅读次数:
4
-hosts:allvars:cap_file:packet_capture_{{ansible_hostname}}.pcaptasks:-name:starttcpdump#command:/usr/sbin/tcpdump-nnviany‘port80‘-s0-B65535-C50M-W100-w/data/tmp/{{cap_file}}command:/usr/sbin/tcpdump-
分类:
其他好文 时间:
2020-12-02 12:46:20
阅读次数:
26
一、报错信息 Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.” 二、出现原因 redis连接输入密码后提示Warning: 。。。 三、解决方法 htt ...
分类:
其他好文 时间:
2020-12-02 12:20:45
阅读次数:
7
File "D:\workspace\mall\venv\lib\site-packages\django\db\models\fields\__init__.py", line 972, in get_prep_value return int(value)ValueError: invalid ...
分类:
其他好文 时间:
2020-12-01 12:26:06
阅读次数:
9
现象 日常工作通过Mac自带Terminal远程ssh到linux服务器完成,制表符显示总是不正常,例如htop运行效果如下图 而用PC的gitbash正常ssh的显示是这样的 可以看出command列中正常的制表符└─变成了`-- 原因 通常乱码问题是语言环境变量错误,通过locale命令将有关当 ...
分类:
系统相关 时间:
2020-12-01 12:07:15
阅读次数:
11
1)配置flume(flume-kafka.conf) # define a1.sources = r1 a1.sinks = k1 a1.channels = c1 # source a1.sources.r1.type = exec a1.sources.r1.command = tail -F ...
分类:
Web程序 时间:
2020-11-30 15:35:17
阅读次数:
9
一,问题 使用git命令时出现了错误: xcode-select: error: invalid developer directory 'path/to/Xcode.app' 二,尝试解决 我发现原因是最近写在卸载了‘巨无霸’Xcode,这时候也不想把xcode下载回来,于是我准备下载: xcod ...
分类:
移动开发 时间:
2020-11-30 15:19:53
阅读次数:
13
编辑用户级配置文件 vim ~/.bashrc 添加配置信息: export PATH=/usr/local/mongodb/mongodb-3.6.5/bin:$PATH (中间那部分就是你的安装目录下的bin) 保存退出,刷新:source ~/.bashrc 我们输入mongo,显示版本信息, ...
分类:
其他好文 时间:
2020-11-27 11:48:48
阅读次数:
36
RCE: 英文全称:remote command / code execcute 分别为远程命令执行(ping)和远程代码执行(evel) 我们常见的路由器、防火墙、入侵检测等设备的web管理界面上一般会给用户提供一个ping操作的web界面,攻击者直接从web界面向后台服务器远程注入操作系统命令或 ...
分类:
Web程序 时间:
2020-11-27 11:30:34
阅读次数:
12