分类: 学习

199 篇文章

在linux中设置优先使用ipv4,而不是ipv6
经试验在debian Centos ArchLinux Manjaro中有效修改/etc/gai.conf取消下面这一行的注释precedence ::ffff:0:0/96 100添加如下内容label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/…
Caddy配置升级1 to 2
proxyThe v2 equivalent is reverse_proxy.Notable subdirective changes are header_upstream and header_downstreamhave become header_up and header_down, respectively; andload-bala…
申请QID方式
设置-账号里面可以申请若果没有,则打开这个链接即可
安装psutil时提示缺少python.h头文件(作记录)
yum -y install python-devel[collapse status="false" title="引用"]通过pip或者源码安装psutil,都会提示缺少python.h头文件,错误提示如下:psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or …
nginx 启动错误”nginx: [emerg] host not found in upstream “解决方案
原因:代理域名在开机的时候解析失败解决方法:1. 在开机后重新启动nginx服务systemctl restart nginx2. 使用hosts设置默认解析3. 确保在启动nginx的时候有网络链接编辑nginx的systemd文件添加After=network.target[collapse status="false" title="引用"]…
删除阿里云登录界面欢迎信息
sudo nano /etc/motd就可以编辑/删除倒数第二行的Welcome to Alibaba Cloud Elastic Compute Service !欢迎信息了。[collapse status="false" title="Style"]Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-19-ge…