摘要: 1.原理 1)进入日志路径 cd /usr/local/nginx/logs 2)日志改名 mv access.log access.log.$(date +%Y%m%d-%H%M%S) 3)重新生成日志 /usr/local/nginx/sbin/nginx -s reopen 2.编写日志切片脚 阅读全文
posted @ 2026-08-12 11:56 精神病人王大夫 阅读(2) 评论(0) 推荐(0)
摘要: 1.从windows复制宋体字体 2.linux系统下/usr/share/fonts 3.创建simsun路径,将字体文件放进去 4.改一下字体权限 cd /usr/share/fonts/ sudo chmod -R myfonts 755 5.安装依赖 yum install mkfontsc 阅读全文
posted @ 2024-06-30 17:53 精神病人王大夫 阅读(465) 评论(0) 推荐(0)
摘要: 1.Oracle客户端的 oci.dll 是32位的,而 PLSQL Developer 是64位应用程序,所以无法加载 oracle精简客户端下载地址,连接 2.没有安装正确的 Visual Studio Redistributable版本 解读:很多人忽略了官网的“安装说明”,里面有重要的一点, 阅读全文
posted @ 2024-05-25 19:16 精神病人王大夫 阅读(3244) 评论(0) 推荐(0)
摘要: 1.安装oracle精简客户端,64位 下载地址 2.下载plsql 下载地址 3.plsql激活 PLSQL developer 15密钥 product code : ke4tv8t5jtxz493kl8s2nn3t6xgngcmgf3 serial Number: 264452 passwor 阅读全文
posted @ 2024-05-25 19:14 精神病人王大夫 阅读(364) 评论(0) 推荐(0)
摘要: 1.我的项目定期生成的log日志很大,需要手动执行此方法才能清空日志 cat /dev/null > /usr/local/server/pingvps/pingvps.out 2.我想把此命令做成脚本,创建clear.sh文件,并且授权最高权限,内容如下 #!/bin/bash sh -c 'ca 阅读全文
posted @ 2024-03-26 23:35 精神病人王大夫 阅读(53) 评论(0) 推荐(0)
摘要: 关闭命令 sed -i.backup -z "s/res null || res undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/prox 阅读全文
posted @ 2024-02-15 15:14 精神病人王大夫 阅读(274) 评论(0) 推荐(0)
摘要: windows下的oracle 1.查找awrrpt.sql文件 D:\software\oracle11\product\11.2.0\dbhome_1\RDBMS\ADMIN\awrrpt.sql 可以根据上面这个路径找自己的 2.执行awrrpt.sql cmd窗口,执行 sqlplus / 阅读全文
posted @ 2024-01-21 17:40 精神病人王大夫 阅读(189) 评论(0) 推荐(0)
摘要: 系统版本 hostnamectl CPU型号 cat /proc/cpuinfo | grep "model name" | uniq CPU数量 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 单个CPU的核心数量 lscpu | 阅读全文
posted @ 2024-01-20 14:32 精神病人王大夫 阅读(59) 评论(0) 推荐(0)
摘要: 连接数 -- 数据库连接数 select count(*) from v$process; -- 数据库允许的最大连接数 select value from v$parameter where name ='processes'; -- session连接数 select count(*) from 阅读全文
posted @ 2024-01-20 10:23 精神病人王大夫 阅读(54) 评论(0) 推荐(0)
摘要: 1.查看本机ipv6地址 windows ipcongig linux ifconfig 2.关闭临时ipv6,管理员执行 netsh interface ipv6 set privacy state=disable 恢复临时ipv6,管理员执行 netsh interface ipv6 set p 阅读全文
posted @ 2024-01-17 10:03 精神病人王大夫 阅读(83) 评论(0) 推荐(0)