首页
Search
1
v2ray异常错误之二
3,310 阅读
2
linux时区设置
2,698 阅读
3
DB2常用操作
2,173 阅读
4
websphere修改jvm内存xmx和xms
1,929 阅读
5
nfs客户端文件属主为nobody的现象
1,552 阅读
技术
生活
运动
游戏
电影
登录
Search
标签搜索
docker
linux
troubleshooting
nginx
secure
truenas
mysql
windows
python
esxi
docker swarm
oracle
zabbix
tomcat
blog
dsm
群晖
rpa
freenas
db
yuc
累计撰写
291
篇文章
累计收到
0
条评论
首页
栏目
技术
生活
运动
游戏
电影
页面
搜索到
289
篇与
的结果
2023-02-06
nginx proxy_pass域名解析到ipv6
0x1 问题 某环境nginx在配置好proxy_pass反向代理外网地址后出现502的情况。但是telnet和curl测试都无问题。在查看error日志可以看到域名地址解析到了ipv6,直接导致502的出现。 0x2 解决 根据nginx的资料和检索的相似案例,尝试设置了参数 resolvoer ipv6=off,但是仍然无效果。进一步搜索之后得知需要在系统级别禁用ipv6,修改sysctl.conf文件,如下: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 设置后再次重载nginx,测试反代地址正常。同时发现设置此参数后nginx的reload速度也加快,正常不到1秒,之前大概需要5秒左右。猜测是之前解析ipv6地址过慢导致。
2023年02月06日
3 阅读
0 评论
0 点赞
2022-12-07
nginx信号
0x1 The master Nginx process can handle the following signals on Linux and Unix like systems: TERM, INT : Quick shutdown QUIT : Graceful shutdown KILL : Halts a stubborn process HUP : Configuration reload. Start the new worker processes with a new configuration. Gracefully shutdown the old worker processes USR1 : Reopen the log files USR2 : Upgrade Executable on the fly WINCH : Gracefully shutdown the worker processes 如上的话,如果是切割日志,那么推荐使用USR1
2022年12月07日
7 阅读
0 评论
0 点赞
2022-11-14
ssh登录的限制
本文主要讲解 openssh 针对用户、主机的登录限制配置 0x1 方式 目前可以选择的方式有几种: 网络级别上的,直接在防火墙对源ip进行限制 操作系统hosts.allow,hosts.deny上进行限制和开放 sshd_config上限制和开放 0x2 区别 防火墙和hosts.allow,hosts.deny都是针对于源ip进行限制的,这里就不多说了。主要看看sshd本身如何进行限制: # 修改sshd_config后都需要重启才能生效 # 主要参数有几个DenyUsers,AllowUsers,用户名,主机名 # 示例一:禁止test用户 DenyUsers test # 示例二:禁止test和test111用户,可以看到是以空格作为分隔符 DenyUsers test test111 # 示例三:只允许192.168.1.1登录test AllowUsers test@192.168.1.1 # 示例四:只允许root和192.168.1.1登录test AllowUsers root test@192.168.1.1 实际测试优先级很严格,不能灵活使用,貌似denyusers中优先级更高,如果denyusers包含了allowusers,那么会禁止登录,所以想跟防火墙一样先禁止全部再开放某些用户应该是不行的。
2022年11月14日
1,180 阅读
0 评论
0 点赞
2022-09-22
API GATEWAY/API网关
0x1 参考: https://2d2d.io/s1/kong-vs-apisix/
2022年09月22日
882 阅读
0 评论
0 点赞
2022-09-13
小工具小技巧
获取外网ip地址 https://tool.lu/ip/
2022年09月13日
851 阅读
0 评论
0 点赞
1
...
44
45
46
...
58