今天介绍一下关于logstash的启动方式,以前说的都是使用/usr/local/logstash-f/etc/logstash.conf方式启动,这样就有一个麻烦,当你关闭终端,或者ctrl+c时logstash就会退出。下面介绍几种长期运行的方式。1、service方式使用rpm方式安装的,都可以/etc/init.d/logstash启动,..
分类:
其他好文 时间:
2016-10-28 15:59:12
阅读次数:
308
Let’s write a short program that clears the screen, displays the current disk directory, and asksthe user to enter a filename. (You might want to exte ...
分类:
其他好文 时间:
2016-10-28 03:11:22
阅读次数:
243
lufy前辈写过《[代码艺术]17行代码的贪吃蛇小游戏》一文,忽悠了不少求知的兄弟进去阅读,阅读量当然是相当的大。今天我不仿也搞一个这样的教程,目地不在于忽悠人,而在于帮助他人。 先看demo效果图: 测试URL: http://www.cnblogs.com/yorhom/articles/315 ...
分类:
Web程序 时间:
2016-10-27 19:35:58
阅读次数:
342
UC浏览器 1.设置屏幕横屏还是竖屏 <meta name="screen-orientation" content="portrait | landscape"> 2.设置是否全屏,yes是强制全屏 <meta name="full-screen" content="yes | no"> 3.缩放 ...
分类:
移动开发 时间:
2016-10-27 13:21:46
阅读次数:
331
/* iPhone 4 and 4S */ /* Portrait and Landscape */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-dev ...
分类:
移动开发 时间:
2016-10-27 12:29:58
阅读次数:
291
1.media控制布局 <link type="text/css" rel="stylesheet" href="css04.css" media="only screen and (max-width:640px)"> <style> @media screen and (max-width:60 ...
分类:
Web程序 时间:
2016-10-26 19:38:37
阅读次数:
202
1.window对象 2.Screen对象 window.screen对象在编写的时候可以不使用window前缀。 3.Location对象 window.location对象在编写的时候可以不使用window前缀。 Location对象的属性: 1)返回完整URL:location.href 2) ...
分类:
Web程序 时间:
2016-10-26 16:30:59
阅读次数:
207
JavaScript函数大全 1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,loca ...
分类:
编程语言 时间:
2016-10-26 13:56:43
阅读次数:
229
In this lesson we will use Flexbox to scale a background image to fit on the screen of our React Native application. ...
分类:
其他好文 时间:
2016-10-25 07:43:00
阅读次数:
225
2016中国房企500强完整榜单 2016中国房企500强完整榜单 100强 100强 100强 101-200强 101-200强 101-200强 201-300强 201-300强 201-300强 301-400 301-400 301-400 401-500强 401-500强 401-5 ...
分类:
其他好文 时间:
2016-10-23 17:32:35
阅读次数:
132