2015年7月1日

摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文
posted @ 2015-07-01 09:41 neyer 阅读(92) 评论(0) 推荐(0) 编辑

2015年6月30日

摘要: Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i... 阅读全文
posted @ 2015-06-30 11:25 neyer 阅读(81) 评论(0) 推荐(0) 编辑

2015年6月29日

摘要: 题目要求:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo... 阅读全文
posted @ 2015-06-29 21:07 neyer 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 【原地址】http://blog.chinaunix.net/uid-24517549-id-4051156.html什么是epollepoll是什么?按照man手册的说法:是为处理大批量句柄而作了改进的poll。当然,这不是2.6内核才有的,它是在2.5.44内核中被引进的(epoll(4) is... 阅读全文
posted @ 2015-06-29 10:30 neyer 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 【原地址】http://blog.csdn.net/historyasamirror/article/details/5778378当你发现自己最受欢迎的一篇blog其实大错特错时,这绝对不是一件让人愉悦的事。《IO - 同步,异步,阻塞,非阻塞》是我在开始学习epoll和libevent的时候写的... 阅读全文
posted @ 2015-06-29 10:21 neyer 阅读(132) 评论(0) 推荐(0) 编辑

2015年6月2日

摘要: 功能说明:检查、设定系统的各种服务。语法:chkconfig [--add][--del][--list][系统服务]或chkconfig [--level][系统服务][on/off/reset]补充说明:这个是redhat公司遵循gpl规则所开发的程序,它可以查询操作系统在每一个执行等级(run... 阅读全文
posted @ 2015-06-02 16:12 neyer 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 开始配置我们来配置一个filter表的防火墙.(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (po... 阅读全文
posted @ 2015-06-02 15:47 neyer 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 在类Unix系统中可以使用top查看系统资源、进程、内存占用等信息。查看网络状态可以使用netstat、nmap等工具。若要查看实时的网络流量,监控TCP/IP连接等,则可以使用iftop。一、iftop是什么?iftop是类似于top的实时流量监控工具。官方网站:http://www.ex-par... 阅读全文
posted @ 2015-06-02 15:45 neyer 阅读(255) 评论(0) 推荐(0) 编辑
摘要: awk的用法a w k语言的最基本功能是在文件或字符串中基于指定规则浏览和抽取信息 调用awk有三种方式调用a w k,第一种是命令行方式,如: awk –F : ‘commands’ input-files 第二种方法是将所有a w k命令插入一个文件,并使a w k程序可执行,然后... 阅读全文
posted @ 2015-06-02 15:39 neyer 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 一般来说,linux服务器大多是通过ssh客户端来进行远程的登陆和管理的,使用ssh登陆linux主机以后,如何能够快速的和本地机器进行文件的交互呢,也就是上传和下载文件到服务器和本地;与ssh有关的两个命令可以提供很方便的操作:sz:将选定的文件发送(send)到本地机器rz:运行该命令会弹出一个... 阅读全文
posted @ 2015-06-02 15:38 neyer 阅读(211) 评论(0) 推荐(0) 编辑

导航