摘要: linux用户管理1./etc/passwd:记录用户信息的文件。➜ vi /etc/passwd#帐号名称:密码:用户ID:组ID:描述信息:用户根目录:用户登陆信息(shell)root:x:0:0:root:/root:/bin/bashdaemon:x:1:1:daemon:/usr/sbi... 阅读全文
posted @ 2014-05-28 15:45 Ben·lucky 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 稍微记一下正则表达式的符号:符号符号用途说明\将下一个字符标记为一个特殊字符,或一个原义字符,或一个向后引用,或一个八进制转义字符如:\n 表示换行, \\ 表示 \ 。^匹配字符串的开始位置,如果设置了RegExp对象的Multiline属性,则 ^ 也匹配 \n 或 \r之后的位置。$匹配字符串... 阅读全文
posted @ 2014-04-14 00:50 Ben·lucky 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 参考了《鸟哥的linux私房菜》,man1.ps概述:-report a snapshot of the current processes.-ps display information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top instead.2.参数:-A:Select all processes. Identical to -e.-a:Select all proces 阅读全文
posted @ 2014-01-31 23:10 Ben·lucky 阅读(236) 评论(0) 推荐(0) 编辑
摘要: *只是做点笔记,巩固自己学习,很多参考了http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316661.html。1.netstat简述:用于显示网络链接相关的信息,可以显示路由表,实际网络链接状态和网络接口设备的状态。显示IP,TCP,UDP和ICMP协议相关的统计数据。2.输出信息的两个部分:(1)有源TCP连接(Active Internet connections)Active Internet connections (only servers)Proto Recv-Q Send-Q Local Address ... 阅读全文
posted @ 2014-01-31 12:52 Ben·lucky 阅读(208) 评论(0) 推荐(0) 编辑
摘要: linux top命令1. 概述(照抄man):The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by linux kernel. The types of system summary information shown and types, order and size of information displaye 阅读全文
posted @ 2014-01-30 13:01 Ben·lucky 阅读(473) 评论(0) 推荐(0) 编辑
摘要: vmstat:1.命令简述:查看服务器的CPU,内存,IO使用情况。(如果是查看某个进程的CPU,和内存使用率,使用top)。2.参数:一般就两个数字,第一个是采样间隔(s),第二个是采样次数。3.例子(每个2s采样一次,共采样2次):meroc@meroc-pc: /home/meroc/m-zone/test/js/frontage➜ vmstat 2 2procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si s... 阅读全文
posted @ 2014-01-30 05:10 Ben·lucky 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 这个其实不难,但是还是写写,毕竟好记性不如烂笔头啊! 我用的操作系统是 fedora 18,用户名 kuku,并从http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html下载了jdk-7u15-linux-x64.tar.gz。 第一次下载,只用了10分钟(我的下载速度是20k/s),解压以后,发现只有一个db文件夹,没有 bin, 没有 jre !我百思不得其解!最后 ls -lnt 发现这个压缩包居然才 4M!天啊,这个包是怎么成为有个完整的包的,居然还能正常解压,佩服啊。无奈.. 阅读全文
posted @ 2013-02-27 19:05 Ben·lucky 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 以下是我的经验,愿与大家分享,不足之处,还望不惜指正。我用的操作系统是 fedora18,nginx的代码包是从 nginx.org 下载的 nginx-1.2.7.tar.gz。参考资料是 《nginx http server》以下是安装步骤:1.首先要确定安装 nginx 的先决条件,nginx 需要一些其他的工具或库来支持,最基本的四个是:GCC,PCRE library,zlib library,Openssl 可以用 rpm -qa XXX 来确定你是否已经安装了这些工具和库(rhel , centos , fedora),如果是用 ubuntu 的,应该试试 apt-get 的类似 阅读全文
posted @ 2013-02-21 22:15 Ben·lucky 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 这仅是我对自己经验的一点积累,若能帮助别人,万分荣幸,若有错误,也请多多指教!客户端:--系统:fedora18--用户:kuku服务器端:--系统:RHEL 5.4--用户:raffy登陆方式:使用SSH命令,通过密钥远程登陆服务器。不涉及:在windows下使用putty,secureCRT等工... 阅读全文
posted @ 2013-02-20 17:14 Ben·lucky 阅读(1096) 评论(0) 推荐(0) 编辑