码迷,mamicode.com
首页 >  
搜索关键字:nginx vim    ( 40075个结果
centos和redhat下安装nginx最新版
在ubuntn下通过agp-get install nginx就可以按照最新版本的nginx,很方便在ctentos和redhat下需要添加yum 仓库才能安装最新版的nginx,在/etc/yum.repos.d/目录下新建nginx.repo 文件输入以下内容就可以了:[nginx]name=n...
分类:其他好文   时间:2014-04-30 05:01:46    阅读次数:477
lnmp建站常识
1.nginx配置网站目录并修改访问的端口:nginx.conf文件listen 666;//端口默认为80,修改后增强安全性 server_name www.lnmp.org; index index.html index.htm ind...
分类:其他好文   时间:2014-04-29 19:29:01    阅读次数:450
nginx: [emerg] the size 10485760 of shared memory zone "cache_one" conflicts with already declared size 0
注意配置段中的区域包含关系.proxy_cache_patch 要在proxy_cache前已经定义.>>>> what seems to be the problem?>>>>>>>> [emerg]: the size 52428800 of shared memory zone "media"...
分类:其他好文   时间:2014-04-28 04:33:03    阅读次数:1157
除去文件中的重复数据
1.先对文件内容排序:cat 1.txt |sort > 2.txt 保存到2.txt中 2.使用vim打开2.txt 执行替换命令: 替换空格:%s/ //g 替换tab:%s/^I//g   (注意:^I 是直接按键盘是的tab键) 替换$:  %s/^M//g (注意:^M 是按ctrl+v 再按Enter键) 3.cat 2.txt | uniq > 3.txt 本文为...
分类:其他好文   时间:2014-04-27 19:07:00    阅读次数:544
Vim学习笔记
1.复制粘贴操作 vim有12个粘贴板,分别是0、1、2、...、9、a、“、+; 用:reg命令可以查看各个粘贴板里的内容。在vim中简单用y只是复制到“(双引号)粘贴板里,同样用p粘贴的也是这个粘贴板里的内容要将vim的内容复制到某个粘贴板,需要退出编辑模式,进入正常模式后,选择要复制的内容.....
分类:其他好文   时间:2014-04-27 16:51:17    阅读次数:585
40075条   上一页 1 ... 4006 4007 4008
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!