随笔分类 -  Linux

上一页 1 2 3 4 5 6 ··· 9 下一页
linux收集
摘要:Apache附带的ab,它非常容易使用,ab可以直接在Web服务器本地发起测试请求。这至关重要,因为我们希望测试的服务器的处理时间,而不包含数据的网络传输时间以及用户PC本地的计算时间。需要清楚的是,ab进行一切测试的本质都是基于HTTP,所以可以说它是对于Web服务器软件的黑盒性能测试,它获得的一... 阅读全文
posted @ 2015-09-10 19:55 KoMiles 阅读(2365) 评论(0) 推荐(0)
摘要:无意中发现知乎中讨论的话题:你认为最好看的 Vim 配色方案(color scheme)是哪款?网友回答排在第一位的是:molokai 啊,最经典的配色既然molokai这么经典,当然要用了。如何给vim中添加molokai主题。molokai是老外开发的插件。github地址:https://gi... 阅读全文
posted @ 2015-08-04 17:14 KoMiles 阅读(19124) 评论(0) 推荐(0)
摘要:如果我们一次打开多个文件看一下当前目录里面的文件:wangkongming@Vostro /data/webroot/testRoot/application/modules/Admin/views $ lltotal 28drwxr-xr-x 2 wangkongming wangkongming... 阅读全文
posted @ 2015-07-17 17:44 KoMiles 阅读(7762) 评论(2) 推荐(1)
摘要:删除行尾的^M:%s/\r//g 阅读全文
posted @ 2015-07-06 15:40 KoMiles 阅读(1410) 评论(0) 推荐(0)
摘要:安装nginxsudo apt-get install nginx安装php和mysqlsudo apt-get install php5-cli php5-cgi php5-curl php5-mysql php5-fpm mysql-server修改nginx配置文件/etc/nginx/ngi... 阅读全文
posted @ 2015-07-05 17:27 KoMiles 阅读(916) 评论(0) 推荐(0)
摘要:安装doxmate时,doxmate地址是:https://github.com/JacksonTian/doxmatenpm install doxmate -g安装完后把错误:Cannot install NodeJs: /usr/bin/env: node: No such file or d... 阅读全文
posted @ 2015-06-30 17:48 KoMiles 阅读(883) 评论(0) 推荐(0)
摘要:转自:http://www.cnblogs.com/fortran/archive/2010/07/25/1784513.html vim中大小写转化的命令是:gu或者gU,形象一点的解释就是小u意味着转为小写,大U意味着转为大写。接下来说明对这两个命令的限定(限定操作的行,字母,单词)等等。 1... 阅读全文
posted @ 2015-06-23 10:25 KoMiles 阅读(11297) 评论(0) 推荐(0)
摘要:文章转自:http://www.netingcn.com/vim-%E5%88%86%E5%B1%8F%E6%93%8D%E4%BD%9C.html启动vim打开多个文件并分屏显示:vim -on file1 file2o为小写字母,上下分,n是分屏的个数,后面是待打开的文件vim -On file... 阅读全文
posted @ 2015-06-11 19:18 KoMiles 阅读(3918) 评论(0) 推荐(0)
摘要:在vim中设置markdown语法高亮是一个不错的选择,但是在google中搜索到的很多都是比较老的设置方式,甚至vim插件下载页面都是一个旧的版本。这里总结下我的修改过程,以帮助像我一样纠结的人。安装插件这个插件的安装和其他vim插件一样,都是拷贝相应文件到对应的目录。github下载:https... 阅读全文
posted @ 2015-06-04 18:47 KoMiles 阅读(7063) 评论(0) 推荐(0)
摘要:2015-06-04 by komilevim基础命令打开一个文件 vim index.php几种模式说明Normal Mode也就是最一般的普通模式,默认进入vim之后,处于这种模式。Insert Mode插入模式,其实就是指处在编辑输入的状态。普通模式下,可以按i进入。Command-Line... 阅读全文
posted @ 2015-06-04 14:27 KoMiles 阅读(806) 评论(0) 推荐(0)
摘要:转自:http://cheneyph.iteye.com/blog/824746系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CP... 阅读全文
posted @ 2015-05-26 18:17 KoMiles 阅读(126140) 评论(1) 推荐(6)
摘要:.bz2 解压1:bzip2 -d FileName.bz2 解压2:bunzip2 FileName.bz2 压缩: bzip2 -z FileName .tar.bz2 解压:tar jxvf FileName.tar.bz2 或tar --bzip xvf FileName.tar.... 阅读全文
posted @ 2015-05-25 17:02 KoMiles 阅读(13724) 评论(0) 推荐(0)
摘要:​1,显示被修改文件的修改统计信息,添加或删除了多少行。git log --stat2,显示最近两条的修改git log --stat -23,显示具体的修改git log -p -24,显示我自己的修改git log --stat --author=wangkongming5,查看单个文件最近两次... 阅读全文
posted @ 2015-05-19 18:50 KoMiles 阅读(5121) 评论(0) 推荐(0)
摘要:转自:http://151wqooo.blog.51cto.com/2610898/1162118如果你想在当前目录下 查找"hello,world!"字符串,可以这样:grep -rn "hello,world!" ** : 表示当前目录所有文件,也可以是某个文件名-r 是递归查找-n 是显示行号... 阅读全文
posted @ 2015-05-04 18:30 KoMiles 阅读(439008) 评论(5) 推荐(4)
摘要:转自:http://www.cnblogs.com/jesseZh/p/4036811.html(64位) sudo dpkg -i chmsee_1.3.0-2ubuntu2_amd64.deb 安装软件包,下载地址:http://kr.archive.ubuntu.com/ubuntu/poo... 阅读全文
posted @ 2015-05-04 17:48 KoMiles 阅读(2681) 评论(0) 推荐(0)
摘要:博客转自:http://www.01happy.com/linux-access-windows-shares-folders/有时需要在linux下需要访问windows的共享文件夹,可以使用mount挂载或者使用samba连接。1、mount挂载首先创建被挂载的目录:$ mkdir window... 阅读全文
posted @ 2015-05-04 16:42 KoMiles 阅读(22818) 评论(1) 推荐(0)
摘要:server { listen 80; server_name blog.localhost; #绑定域名 index index.htm index.html index.php; #默认文件 root /data/webroot/blog;... 阅读全文
posted @ 2015-05-04 13:15 KoMiles 阅读(1067) 评论(0) 推荐(0)
摘要:charles是很好的抓包工具。如何安装呢?可以去官网下载:http://www.charlesproxy.com/download/如果是Debian系列的,可以直接用apt-get 安装http://www.charlesproxy.com/documentation/installation/... 阅读全文
posted @ 2015-05-03 23:18 KoMiles 阅读(8136) 评论(0) 推荐(0)
摘要:一、用好系统自带软件ctags大部分的unix系统都有ctags软件,它能跟vim很好地合作。用途: 生成c语言的标签文件,实现相关c文件之间的跳转。用法: 1.生成标签文件 在当前目录下(运行$提示符后面的命令): $ctags -R . -R表示recursive,递归,为当... 阅读全文
posted @ 2015-04-28 16:38 KoMiles 阅读(5482) 评论(0) 推荐(0)
摘要:转自:http://www.xefan.com/archives/83568.html这是对程序员非常实用的一款插件,支持多种语言的补全,还支持单行注释,批量注释,等各种命令映射。使用方法,先下载该插件:http://www.vim.org/scripts/script.php?script_id=... 阅读全文
posted @ 2015-04-28 10:20 KoMiles 阅读(8442) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页