首页
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-08-21
mysql shell的使用
0x1 针对 mysql8 及以上的版本提供的工具,功能很强大 其中使用过的,导入导出 csv 非常快,并且稳定性很好,不需要做额外处理
2023年08月21日
2 阅读
0 评论
0 点赞
2023-08-21
truenas的升级
0x1 要点 升级先了解升级路径是怎么样的,然后去官网找手动升级包,实际测试在线升级花费时间太长,几百M的补丁包下载一天,比预计的1个小时多太多,然后最主要的是升级要求系统重启,在线升级太慢无法控制重启时间
2023年08月21日
9 阅读
0 评论
0 点赞
2023-08-11
nginx之403错误-写权限不足
0x0 前段报错后,通过浏览器F12查看是403错误,于是登录 tengine 查看日志,确发现 access 一度没有看到相关的请求,怀疑是没有经过此 tengine、甚至是客户端错误,但从浏览器内 403 返回内容否定了这点,因为 403 的内容是 tengine 返回的。 那么这是怎么回事呢? 通过在浏览器内请求指定的 url,发现 access 日志能匹配到,那么日志是没问题的,由于响应的是 tengine 返回,所以应该也没有 waf 拦截。 在尝试了多次方案之后,仍然没有找到请求,于是尝试查看 error 日志,发现此请求会要求写缓存,但是缓存无权限写入报错。 猜测是 nginx 无权限写文件,于是为了标识是权限问题,所以返回了 403 ,所以这个问题教会我们的是,我们总以为服务正常情况下能记录所有日志,因为基本上 4xx、5xx日志都会记录下来,而现在可以知道,就算是 nginx、web都没问题,日志不一定能记录所有请求,可能会因为 nginx 内部错误、甚至可能是操作系统级别的错误导致异常,而无法记录下日志。
2023年08月11日
2 阅读
0 评论
0 点赞
2023-08-07
mat脚本ParseHeapDump.sh之cannot open display
0x1 错误 在导出 jvm 内存转储后使用mat工具进行分析,但是在执行 ParseHeapDump.sh 后提示如下错误: cannot open display 尝试了很多办法,其中包括去掉所有参数直接执行此脚本,以及执行脚本实际调用的命令 MemoryAnalyzer,又或者更换 JDK 版本,都是报错的这个内容。在根据 mat 的相关内容进行搜索,也没有解决办法 最后通过 display 的关键字搜索出来了解决方案,如下: export DISPLAY=:0 xset q 参考文档如下: https://askubuntu.com/questions/476036/xset-unable-to-open-display 那么为什么会出现这种情况呢?相信弄清楚 DISPLAY=:0 就可以了,有一些难以理解的解释: Explicitly setting DISPLAY=:0 is usually a way to access a machine's local display from outside the local session, such as over a remote access or from a cron job :0 is usually the local display (i.e. the main display of the computer when you sit in front of it). :1 is often used by services like SSH when you enable display forwarding and log into a remote computer. It can also be modified by startup scripts which try to "fix" it. To find out whether this is happening, run grep DISPLAY ~/.??* .??* is a trick to get all dot files without .. and . (parent and current folder). If that doesn't print anything, check /etc/profile,/etc/bash* and /etc/bash*/* in a similar manner. I couldn't find a useful manual for xmacro but most X11 application support the option -d or -display to override $DISPLAY.
2023年08月07日
8 阅读
0 评论
0 点赞
2023-08-04
v2ray/v2fly的安装使用以及加速
0x0 重点如下: 系统推荐 centos7.9 安装bbr魔改版加速(bbr和锐速lotserver二选一,推荐bbr) wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh 选择安装bbr/bbr魔改版,安装后重启 重启后仍然执行脚本 ./tcp.sh 选择使用bbr魔改版,之后下面会提示已经安装bbr和开启bbr加速模块则成功,或者可以使用以下命令确认 # 结果返回 tsunami 或 bbr sysctl net.core.default_qdisc # 结果返回 fq sysctl net.ipv4.tcp_available_congestion_control 安装v2ray curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh > install-release.sh # 默认安装最新版,可以指定版本 ./install-release.sh --version v5.1.0 v2ray配置参考 /usr/local/etc/v2ray/config.json { "log": { "loglevel": "info", "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log" }, "inbounds": [ { "port": 10000, "listen":"127.0.0.1",//只监听 127.0.0.1,避免除本机外的机器探测到开放了 10000 端口 "protocol": "vmess", "settings": { "clients": [ { "id": "7ec9de15-4147-4121-848b-1fcbb7fc5624", "alterId": 0 } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/xxx" } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] } 如果是安装较高的版本,可能提示系统版本太低,可以选择升级到较高版本 安装nginx,安装过程略,配置如下 server { listen 443 ssl; ssl_certificate /opt/domain.crt; ssl_certificate_key /opt/domainname.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; server_name fd.xxx.com; #与 V2Ray 配置中的 path 保持一致 location /xxx { proxy_redirect off; #假设WebSocket监听在环回地址的10000端口上 proxy_pass http://127.0.0.1:10000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
2023年08月04日
2 阅读
0 评论
0 点赞
1
...
37
38
39
...
58