Linux
文章平均质量分 70
海豚六号
这个作者很懒,什么都没留下…
展开
-
VI/VIM text editor 12 Powerful Find and Replace Examples
In this article, let us review how to perform both basic and advanced text and pattern substitution features in Vi and Vim Editor. These features are explained using 12 very practical and powerful t转载 2012-02-24 16:37:49 · 1223 阅读 · 0 评论 -
OSSEC installation guide
SSEC is an Open Source Host-based Intrusion Detection System. It performs log analysis, integrity checking, Windows registry monitoring, rootkit detection, real-time alerting and active response. It r原创 2013-08-21 14:03:08 · 1173 阅读 · 0 评论 -
Puppet Installation Guide on Ubuntu12.04
Pre-InstallOS/Ruby Version· See the supported platforms guide.· If your OS is older than the supported versions, you may still be able to run Puppet if you install an updated ver转载 2013-05-22 17:11:40 · 1054 阅读 · 0 评论 -
How to install Cacti on Ubuntu
Installation prerequisiteThe following packages are required to run Cacti properlyApache2# apt-get install apache2# apt-get install php5 php5-cli php5-mysql php5-snmpMYSQL# apt-get原创 2013-05-22 21:39:17 · 1259 阅读 · 0 评论 -
How to change CentOS IP address on a cloned VM
I cloned a CentOS VM(wmware) but couldn't bring the network up, it said "device eth0 does not seem to be present, delaying initialization".It turns out that the NIC on the cloned VM was being re原创 2013-04-24 17:26:09 · 1356 阅读 · 0 评论 -
【系统工程师的自我修养】sed篇
作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/注:本文除特殊注明外均针对传统UNIX中的sed,而非GNU的版本,以保证通用性,GNU的新特性本文暂不进行介绍,请参看手册。另外,本文对sed的讲述和总结不为求全面,只求实用性和适用性强。有需要还是参阅man手册和sed相关资料。1.原理篇掌握这个东西首先需要掌握的就是原理,否则一切转载 2013-02-20 22:17:35 · 912 阅读 · 0 评论 -
5 Linux Touch Command Examples (How to Change File Timestamp)
Every file in Linux is associated with timestamps, which specifies the last access time, last modification time and last change time.Whenever we create a new file, or modify an existing file or it转载 2012-11-22 15:50:47 · 954 阅读 · 0 评论 -
不同操作系统下的“回车(CR)” and "换行(LF)"
遇到的问题是在windows编辑的配置文件,放到Linux上面就解析出错。这种错误光靠肉眼真是很难看出端倪。 于是想到Windows和Unix文件格式的区别,其中一个就是回车和换行在两种平台下的区别。于是乎用Notepad++ 打开文件查看,发现windwos下编辑的文件结尾是CRLF, Linux下面只是LF. 这事才恍然大悟:WINDOWS下, 以为行尾的标志.原创 2012-12-04 10:37:36 · 1154 阅读 · 0 评论 -
Linux CRON Best Practice
手头有个Node.js的web应用,host在linux主机上。刚开发完遇到个小问题,系统bug比较多经常不经意间操作,整个应该就crash了,还得手动重新启动node应用。当然这主要原因是我们的错误处理机制没完善,这事接下来的任务,当务之急是想写个小程序检测node应用,发现crash立马再次重启应用。这样给用户的体验会好些。立马想到了Linux下单Cron,类似windows下面的原创 2012-11-02 16:52:31 · 720 阅读 · 0 评论 -
Set up SVN in Ubuntu
In Ubuntu, the easiest way to do version control is to set up a Subversion (SVN) server.After several tries i did, the following steps should be works on Ubuntu 11.04 desktop version!I原创 2012-05-17 10:52:35 · 658 阅读 · 0 评论 -
Ubuntu在corporate network下的网络配置问题
在折腾几次之后终于有些眉目了,搞清楚了虚拟环境中Linux虚机如何联网的问题。 话说这Linux系统只要配置好IP地址就应该可以访问网络了啊,顶多是再加个代理。事情本应该就是这么美好。 但通常公司的corporate network有成百上千的policy限制,防火墙就是这么出来的。场景描述:1. Install Ubuntu OS2. Configure network3. Tr原创 2012-05-11 17:54:08 · 849 阅读 · 0 评论 -
OSSEC Monitor your App log file
OSSEC monitors system logs with build-in support, and does a good job. Don't forget OSSEC is also can monitor the custom log file like our app's log. You have to create your own decoder and rule for that.原创 2013-08-22 10:24:17 · 1321 阅读 · 0 评论