01 2020 档案

摘要:#!/bin/bash # A simple iptables firewall configuration PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH #flush/erase original rules iptables -F #清除所有已制 阅读全文
posted @ 2020-01-20 17:49 MR__Wang 阅读(578) 评论(0) 推荐(0)
摘要:本文地址http://comexchan.cnblogs.com/,作者Comex Chan,尊重知识产权,转载请注明出处,谢谢! 直接覆盖某文件内容或者新建某文件 首先我们看待测试的文件一开始是不存在的 ll /tmp/ 然后执行测试 cat << EOF >/tmp/test_cat_and_E 阅读全文
posted @ 2020-01-16 11:31 MR__Wang 阅读(815) 评论(0) 推荐(0)
摘要:#升级centos7 的内核为 4.4 rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install -y kernel-lt #设置 阅读全文
posted @ 2020-01-14 16:41 MR__Wang 阅读(518) 评论(0) 推荐(0)
摘要:1、安装 eventlogtar -zxvf eventlog-0.2.13.tar.gz cd eventlog-0.2.13./configure --prefix=/usr/local/eventlog-0.2.13 make && make installln -s /usr/local/e 阅读全文
posted @ 2020-01-13 14:36 MR__Wang 阅读(778) 评论(0) 推荐(0)
摘要:批处理压缩2天前的iis日志 @echo off rem 提供Windows下iis指定目录下日志压缩功能 echo begin cls ::压缩程序路径 set RAR_EXE_PATH=;"C:\Program Files\WinRAR";%SystemRoot%\system32 ::需要压缩 阅读全文
posted @ 2020-01-10 15:21 MR__Wang 阅读(328) 评论(0) 推荐(1)
摘要:准备: 安装系统组件 yum -y install Xvfb yum -y install gstreamer-plugins-base-devel cd /usr/local/ mkdir wkhtmltopdf && cd wkhtmltopdf 下载并解压相关文件 cd /usr/local/ 阅读全文
posted @ 2020-01-08 14:50 MR__Wang 阅读(504) 评论(0) 推荐(0)
摘要:1.查找: ? 1 2 3 4 5 6 7 8 MySQL> show binary logs; +—————-+———–+ | Log_name | File_size | +—————-+———–+ | mysql-bin.000001 | 150462942 | | mysql-bin.000 阅读全文
posted @ 2020-01-06 14:42 MR__Wang 阅读(3288) 评论(0) 推荐(0)