set enc=utf-8centos修改
/etc/vimrcubuntu修改:/etc/vim/vimrc
分类:
其他好文 时间:
2014-05-15 14:33:51
阅读次数:
200
第一步vim/etc/sysctl.conf
net.ipv4.tcp_keepalive_time=1800
net.ipv4.tcp_keepalive_probes=5
net.ipv4.tcp_keepalive_intvl=15
net.core.rmem_max=167772160
net.core.wmem_max=167772160
net.ipv4.tcp_rmem=409687380167772160
net.ipv4.tcp_wmem=409665536167772160
net...
分类:
其他好文 时间:
2014-05-15 12:32:43
阅读次数:
248
Here is a brief introduction and package of
dotfiles for linux/unix user.I think there are enough informative description
about the package.Here is th...
分类:
编程语言 时间:
2014-05-15 12:01:37
阅读次数:
370
实例四:随机读写。在C:\\TEST.TXT文件中创建如下字符串:我爱你,中国使用随机读写,输出"中国"两个字,以为中文字符占两个字节,所以要从文件首部向后偏移7个字节,逗号是英文字符,占用一个字节。#include<stdio.h>#include<stdlib.h>intmain(){FILE*fp;charc;if(..
分类:
编程语言 时间:
2014-05-15 00:49:19
阅读次数:
325
下是centos6.4里安装vim配置操作命令[BEGIN]2014/5/13星期二上午10:08:54
[root@bogon~]#rpm-qa|grepvim
[root@bogon~]#yumremovevimvim-enhancedvim-commonvim-minimal
[root@bogon~]#wgetftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
[root@bogon~]#yumupdatewget
[root@..
分类:
其他好文 时间:
2014-05-15 00:36:45
阅读次数:
379
I/O库为文件操作提供两种模式。简单模式(simple model)拥有一个当前输入文件和一个当前输出文件,并且提供针对这些文件相关的操作。完全模式(complete model)使用外部的文件句柄来实现。简单模式 I/O库将当前输入文件作为标准输入(stdin),将当前输出文件作为标准输出(stdout)。这样当我们执行io.read,就是在标准输入中读取一行。写操作较读操作简单,我们先...
分类:
其他好文 时间:
2014-05-15 00:06:34
阅读次数:
383
linux命令行环境linux常用命令用法,软件的安装,vim的用法,在特定的linux版本安装了epel源,学会用SSH配置公钥、私钥,通过SSH来远程登录linux主机,如在windows下用putty来远程登录linux主机。版本控制工具svn/git,git可以和gitlab配合使用。C/C...
分类:
其他好文 时间:
2014-05-14 22:42:30
阅读次数:
552
当我们在linux系统用vim编辑一个文件时,由于断电或其他的原因,比如用的ssh连接的端口,网络中断而关闭等。当再次编辑这个文件时会有提示:“filname.swp”alreadyexists![O]penRead-Only,(E)ditanyway,(R)ecover,(Q)uit:当再次按确认键,可进入编辑模式,每次进入都会问你一..
分类:
其他好文 时间:
2014-05-14 19:17:12
阅读次数:
252
old:autoloifaceloinetloopbackautoeth1ifaceeth1inetstaticaddress10.0.13.13netmask255.255.255.0autobr0ifacebr0inetstaticaddress1.1.1.1netmask255.255.255.0gateway1.1.1.1bridge_portseth0bridge_stpoffbridge_fd0bridge_maxwait0dns-nameservers202.106.0.20202.106.1..
分类:
其他好文 时间:
2014-05-14 17:54:12
阅读次数:
216
1说明SVN采用post-commit方式(钩子文件)实现版本自动发布。2实现方法2.1SVN部署安装:#yuminstallhttpdhttpd-develmysql-serverphpphp-develphp-mysqlsubversionmod_dav_svnmod_auth_mysql-y修改配置:#vim/etc/httpd/conf/httpd.conf
添加一行:
LoadModulephp5_modulemodul..
分类:
其他好文 时间:
2014-05-14 16:19:46
阅读次数:
328