Hunter的大杂烩 技术学习笔记

2020-02-05

windows10 重启输入法不见的临时解决方法

Filed under: 技术话题 — hunter @ 11:42 pm

网上一般处理方法是在设置中,重新选择在桌面上显示输入法,操作较为麻烦,简单的方法可以在桌面上建立一个批文件,里面放一行命令:


taskkill /IM ctfmon.exe
pause

然后以管理员权限运行即可

2020-01-04

Windows cmd 查看文件MD5 SHA1 SHA256

Filed under: 技术话题 — hunter @ 3:56 pm

from: https://blog.csdn.net/king_cpp_py/article/details/79523816


certutil -hashfile yourfilename.ext MD5

certutil -hashfile yourfilename.ext SHA1

certutil -hashfile yourfilename.ext SHA256

2019-12-09

Python 记录log中文报错IOError: [Errno 0] Error

Filed under: 技术话题 — hunter @ 11:56 pm
  1.  WINDOWS下命令行执行报错,可以输入以下2条命令解决
chcp 65001
set PYTHONIOENCODING=utf-8
  1. 写日志时报错,说明变量有些字符是utf8,可以用下面方法解决

logging.error(“some log:” + unicode(input, ‘utf-8’))

2019-12-01

免费APACHE SSL证书安装

Filed under: 技术话题 — hunter @ 3:41 pm

参考:
https://letsencrypt.org/zh-cn/getting-started/
https://www.cnblogs.com/stulzq/p/8628163.html


yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
yum install certbot python2-certbot-apache
certbot certonly -d 你的域名 -d *.你的域名 --manual --preferred-challenges dns

(more…)

2019-11-30

apache安装ssl证书

Filed under: 技术话题 — hunter @ 11:13 pm

从证书服务商得来的压缩包里,只有一个公钥crt和一个证书链文件,缺少私钥key文件,百思不得其解,最后只能自己手动在服务器上生成一个csr和key文件,重新向证书服务商请求Rekey,用新得来的crt文件配置上apache了:

[code language=”bash”]
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
[/code]

« Newer PostsOlder Posts »

Powered by WordPress