08 2018 档案
摘要:UnicodeDecodeError: 'gbk' codec can't decode bytes in position 2-3: illegal multibyte sequence 失败原因:原文件中文是UTF-8编码,现在用gbk解码则会报错,编码和解码方法不一致所致; 解决办法:先确认原
阅读全文
摘要:ps -ef | grep "服务名" | grep -v "grep" | awk '{print $2}' # ps -ef|grep "被查询的服务名" 查询服务进程号命令 # grep -v grep 在文档中过滤掉包含有grep字符的行 # awk '{print $2}' 一行一行的读取
阅读全文