题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1346 Dynamic programming 需要注意的是input里 ...
分类:
其他好文 时间:
2017-06-12 18:45:48
阅读次数:
147
1syslog介绍syslog守护进程,内部有两个进程,syslogd主要负责用户空间的用户进程记录日志;klog负责内核所发生的各种时间记录日志。两者合并后形成syslog。rsyslog是syslog下一代升级产品,依然有syslogdklogd提供服务。rsyslog可以开通远程机制监听在某个套接字上,其他任何..
分类:
其他好文 时间:
2017-06-08 17:55:39
阅读次数:
149
Grafana接入zabbix部署 阿里云ECS部署Grafana接入zabbix Grafana 是 Graphite 和 InfluxDB 仪表盘和图形编辑器。Grafana 是开源的,功能齐全的度量仪表盘和图形编辑器,支持 Graphite,InfluxDB 和 OpenTSDB。 ...
分类:
其他好文 时间:
2017-06-07 15:38:37
阅读次数:
435
一、环境准备:HA架构至少需要一主一从1.1、主机规划: master端:192.168.56.11 slave端:192.168.56.12 1.2、安装redis环境两台机器分别安装redis3.2.8安装步骤如下: cd /usr/local/ wget http://download.red ...
分类:
其他好文 时间:
2017-06-07 12:44:32
阅读次数:
290
[root@WEBServer10414~]#cat/etc/nginx/nginx.conf#usernobody;#定义nginx运行的用户和用户组userroot;worker_processes8;#nginx进程数,建议设置为等于CPU总核心数#error_loglogs/error.log;#错误日志路径#error_loglogs/error.lognotice;#错误日志类型,如[debug|info|notice..
分类:
其他好文 时间:
2017-06-05 22:20:58
阅读次数:
268
一、PHP中的错误处理 1、PHP中的错误级别 2、调整PHP错误报告级别 >>>PHP中,调整错误报告级别的方式有两种: ①修改php.ini文件的配置项。 a.会导致在当前服务器环境下的所有PHP文件都受其影响 b.如果代码要更换服务器,会导致配置文件全部失效,需重新配置 所以,实际开发过程中, ...
分类:
Web程序 时间:
2017-06-04 21:11:29
阅读次数:
180
【题目描述】Givenastringsourceandastringtarget,findtheminimumwindowinsourcewhichwillcontainallthecharactersintarget.Notice:Ifthereisnosuchwindowinsourcethatcoversallcharactersintarget,returntheemtpystring"".Iftherearemultiplesuchwindows,youareguaranteedthat..
【题目描述】Givenanarraynumsofintegersandanintk,partitionthearray(i.emovetheelementsin"nums")suchthat:Allelements<karemovedtotheleft;Allelements>=karemovedtotheright;Returnthepartitioningindex,i.ethefirstindexinums[i]>=k.Notice:Youshoulddoreallypar..
分类:
其他好文 时间:
2017-06-02 17:30:52
阅读次数:
112
Deliver not your words by number but by weight. 言不在多,而在有物。 Do more than talk, say something. I still remember when I was a child in the primary school ...
分类:
其他好文 时间:
2017-06-01 10:32:05
阅读次数:
193
#user nobody;worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/nginx.pid; event ...
分类:
其他好文 时间:
2017-05-31 11:58:26
阅读次数:
253