日志 25

hash070
hash070
2022-11-21 17:51

hash070@hash070mba ~ % defaults read -g com.apple.mouse.scaling
2022-11-21 17:50:08.262 defaults[33356:1832960]
The domain/default pair of (kCFPreferencesAnyApplication, com.apple.mouse.scaling) does not exist

0
hash070
hash070
2022-10-18 15:56

nslookup 软件包安装
红帽系(CentOS)
yum install -y bind-utils
Debian&Ubuntu
apt install dnsutils -y

0
hash070
hash070
2022-09-16 12:07

Linux设置时区
timedatectl set-timezone Asia/Shanghai

0
hash070
hash070
2022-09-07 09:33

Git 如何忽略word临时文件?
解决方案:
在.gitignore中添加~$*

0
hash070
hash070
2022-08-10 12:34

OCSP 装订:
只需Server块中加入

ssl_stapling on;
ssl_stapling_verify on;# 启用OCSP响应验证,OCSP信息响应适用的证书

然后再配置一下dns解析

resolver 8.8.8.8 1.1.1.1 valid=60s;#添加resolver解析OSCP响应服务器的主机名,valid表示缓存。

reload后可以在这里测试是否开启成功
https://www.digicert.com/help/

0
hash070
hash070
2022-07-29 12:19

Nginx 宕机自动重启

最近安装了最新款的拓展版nginx(nginx-extras)
发现nginx服务宕机后居然不会自动重启

解决方案:
vim /lib/systemd/system/nginx.service
在[Service]部分添加
Restart=always
最后不要忘了
systemctl daemon-reload

0
hash070
hash070
2022-07-29 11:47

Vim中文乱码

解决办法
编辑 ~/.vimrc 文件(没有则手动创建) 添加如下几行

 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
 set termencoding=utf-8
 set encoding=utf-8
0
hash070
hash070
2022-07-18 13:11

How to change default shell in Ubuntu?
sudo chsh -s $(which zsh)

0
hash070
hash070
2022-07-18 08:21

博客精品化决定:
以后决定降低博客更新频率,提高博客质量。

0
hash070
hash070
2022-07-17 21:23

How to open files via Terminal?
well that's simple,you could use open command
such as open ./ could open the current folder in Files browser.

0