01 2020 档案

摘要:``` 检查docker日志情况 容器日志一般存放在/var/lib/docker/containers/container_id/下面,以json.log结尾的文件(业务日志)很大,查看各个日志文件大小的脚本docker_log_size.sh,内容如下: ``` ``` #!/bin/sh echo " start clean docker containers logs " logs=$(f 阅读全文
posted @ 2020-01-30 11:06 kylingx 阅读(1069) 评论(0) 推荐(0)
摘要:``` 直连路由 int vlan 18 ip ad 10.66.18.254/24 同时存在静态路由配置next hop ip route 10.66.18.0 255.255.255.240 172.28.1.1 permanent - 地址段 ip route 10.66.18.2 255.255.255.255 172.28.1.1 permanent - host ip route 10 阅读全文
posted @ 2020-01-28 17:48 kylingx 阅读(99) 评论(0) 推荐(0)
摘要:```snmpconfig --set snmpv1snmptraps --send -ip_address 10.0.1.83``` 阅读全文
posted @ 2020-01-23 18:46 kylingx 阅读(302) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-23 17:11 kylingx 阅读(507) 评论(0) 推荐(0)
摘要:``` C盘存在大量cbs.log文件,磁盘挤爆 Stop the Windows Modules Installer (TrustedInstaller) service Delete or move the large Cbspersist_XX.log file out of \Windows\Logs\CBS. Start the Windows Modules Installer (Tr 阅读全文
posted @ 2020-01-23 16:50 kylingx 阅读(1797) 评论(0) 推荐(0)
摘要:``` 环境依赖 yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel tar -xzvf *.tar.gz cd vpnserver make ./vpnserver start ./vpncmd 设置密码 ServerPasswordSet 自启动 vim /etc/rc.d/rc.local /dat 阅读全文
posted @ 2020-01-22 15:47 kylingx 阅读(2028) 评论(0) 推荐(0)
摘要:``` docker部署 docker pull uroni/urbackup-server docker run --name urbackup-server -it \ -p 55413-55415:55413-55415 \ -p 35623:35623/udp \ -v urbackups:/backups \ -v urbackupdatabase:/var/urbackup \ -v 阅读全文
posted @ 2020-01-19 11:27 kylingx 阅读(375) 评论(0) 推荐(0)
摘要:```psping -b -l 1500 -n 15000 10.66.34.3:3389``` 阅读全文
posted @ 2020-01-16 17:06 kylingx 阅读(486) 评论(0) 推荐(0)
摘要:``` 安装httpd mariadb yum install -y httpd mariadb-server mariadb php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash rpm -qa httpd php mariadb systemctl status httpd s 阅读全文
posted @ 2020-01-15 20:29 kylingx 阅读(226) 评论(0) 推荐(0)
摘要:部署 yum install -y bind* vim /etc/named.conf listen-on port 53 { any; }; // listen-on-v6 port 53 { ::1; }; allow-query { any; }; 配置转发,用于解析外网 recursion 阅读全文
posted @ 2020-01-15 08:46 kylingx 阅读(206) 评论(0) 推荐(0)
摘要:``` !/bin/bash SRCPATH=/data/svnrepos/softdev/; 定义仓库parent路径 DISTPATH=/data/svnbak/full/ / ; 定义存放路径; DISTPATH2=/data/svnbak/tar/ mkdir p $DISTPATH ech 阅读全文
posted @ 2020-01-13 18:28 kylingx 阅读(140) 评论(0) 推荐(0)
摘要:1.通过show processlist;或show full processlist;命令查看当前执行的查询 2.杀掉该进程 mysql kill 19 3.通过慢查询日志找到具体的sql语句 开启慢查询: [mysqld] slow_query_log=1 开启慢查询 long_query_ti 阅读全文
posted @ 2020-01-13 18:26 kylingx 阅读(468) 评论(0) 推荐(0)
摘要:``` Windows 任务计划程序定时执行 Get-ExecutionPolicy Set-ExecutionPolicy Unrestricted 任务计划设置 启动程序powershell 参数-脚本路径c:\123.ps1 ``` 阅读全文
posted @ 2020-01-08 12:39 kylingx 阅读(292) 评论(0) 推荐(0)
摘要:``` 安装powercli 创建删除快照脚本 Import-Module VMware.VimAutomation.Core Connect-VIServer -Server 'SSSSS' -User 'AAAA' -Password 'BBB' Get-VM | Select-Object Name,PowerState #Get-VM | Where {$_.PowerState -eq 阅读全文
posted @ 2020-01-08 12:37 kylingx 阅读(294) 评论(0) 推荐(0)
摘要:```安装组件 requests方法一(docker中无pip)pip install requestspip install --upgrade requests方法二wget https://pypi.python.org/packages/c3/38/d95ddb6cc8558930600be088e174a2152261a1e0708a18bf91b5b8c90b22/requests-2... 阅读全文
posted @ 2020-01-07 20:16 kylingx 阅读(195) 评论(0) 推荐(0)
摘要:```查看上GB的目录并且排序,可以用这个命令du -h --max-depth=1 |grep 'G' |sort进入根目录,查询大文件与目录cd /du -sh * | sort -n``` 阅读全文
posted @ 2020-01-07 17:16 kylingx 阅读(160) 评论(0) 推荐(0)
摘要:设置esxi时间 esxcli安装升级包 阅读全文
posted @ 2020-01-03 17:04 kylingx 阅读(942) 评论(0) 推荐(0)