1、LVS客户端自动配置#/bin/bashVIP=(202.106.195.111 202.106.195.222)[ -e /etc/sysctl.conf ]&&rm -f /etc/sysctl.conf[ -e /etc/sysconfig/network-scripts/ifcfg-lo ...
分类:
其他好文 时间:
2019-09-28 17:40:02
阅读次数:
173
服务器上的nginx使用logrotate来分割日志,设置为每天分割。但是logrotate似乎没有工作,日志并没有分割。服务器是CentOS 6。为了找到原因,分析可能出错的地方。如果是logrotate未执行,可能是crond没有启动,因为logrotate被/etc/cron.daily/lo... ...
分类:
其他好文 时间:
2019-09-25 15:30:32
阅读次数:
110
1.首先导入日志模块 import logging 2.日志的5个等级:从低到高依次为 Debug(用于调试)、info(常规信息)、warning(警告信息)、error(错误信息)和critical(严重错误) 3.调试的方法:(1)print方法 (2)打断点 (3)通过日志进行调试 4.lo ...
分类:
其他好文 时间:
2019-09-24 17:28:03
阅读次数:
74
tcpdump是很好的tcp分析工具,在此配合nc命令来学习tcpdump 1. nc l 8000 2. tcpdump S n i lo tcp and host 127.0.0.1 and port 8000 3. nc localhost 8000 第一步是启动8000端口 第二步是启动抓包 ...
分类:
其他好文 时间:
2019-09-23 22:50:25
阅读次数:
184
uni.chooseImage({ count: 9, success: res => { this.imageList = this.imageList.concat(res.tempFilePaths); console.lo... ...
分类:
移动开发 时间:
2019-09-21 11:01:31
阅读次数:
652
数据库经常被多个用户访问,对处理什么情况已经用什么次序处理进行管理是MySQL的任务。insert 操作可能很耗时,尤其是有很多索引需要更新时, 而且它可能会降低等待处理的select语句的性能。 如果select是最重要的(通常也是这样的),那可以通过在insert 和into 之间添加关键字LO ...
分类:
数据库 时间:
2019-09-19 21:13:36
阅读次数:
117
Atcoder ABC 141 A Weather Prediction SB题啊,不讲。 B Tap Dance 暴力判断每一位是否合法就行。 cpp include include include include include using namespace std; define LL lo ...
分类:
其他好文 时间:
2019-09-17 10:57:33
阅读次数:
187
ip命令功能:配置网络属性 一、ip link 系列 ip link ip [-s] link show # 查看默认信息 ip link show eth0 ip link show up ip link show up # 查看启用的端口 ip link show lo # 查看某一端口 ip ...
分类:
系统相关 时间:
2019-09-16 16:41:31
阅读次数:
125
配置主机静态IP地址、网络接口、主机名 $ vim /etc/network/interfaces auto lo # 回环网络接口iface lo inet loopbackauto ens33 # 网络接口的名称iface ens33 inet static # 将dhcp修改为staticad ...
分类:
其他好文 时间:
2019-09-16 10:16:16
阅读次数:
116
注意,超长整型和无符号超长整型是在 C++11 中引入的。 1、整形:表示整数、字符和布尔值的算数类型的合称; 2、字符类型有两种:char和wchar_t,char类型通常是单个字节,wchar_t类型用于扩展字符集,比如汉字和日语,这些字符集不能用单个char表示; 3、short、int、lo ...
分类:
编程语言 时间:
2019-09-14 22:59:10
阅读次数:
341