1、配置文件的位置在目录/etc/下面,有个名为vimrc的文件,这是系统中公共的vim配置文件,对所有用户都有效。而在每个用户的主目录下,都可以自己建立私有的配置文件,命名为:“.vimrc”。例如,/root目录下,通常已经存在一个.vimrc文件。2、设置语法高亮显示1)打开vimrc,添加以...
分类:
其他好文 时间:
2014-05-06 00:55:57
阅读次数:
430
3 30 1000 false Test false 100 null false 60 3 60
15 100 3 root password select id from test where id=1 300 false true root false
con_test 30000 30 .....
分类:
其他好文 时间:
2014-05-06 00:31:10
阅读次数:
258
software directory: The default directory of
software installed on ubuntu is /usr, so just allocate more space for this
partition when installing oper...
分类:
其他好文 时间:
2014-05-06 00:02:59
阅读次数:
281
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407
1.[root@rusky ]# vi list
#如果testfile不存在,则vi会自动创建一个名为testfile的文件,并在Vi打开该文件等待用户输入内容。2.[root@rusky ]# ls -l
>listfile #利用重定向,将ls -l 的执行结果输出到新文件listfile.....
分类:
其他好文 时间:
2014-05-05 23:21:35
阅读次数:
381
这周继续讲解php,更加深入的了解的php与数据库的链接,$conn=mysql_connect("localhost","root","") or die
("数据库连接失败");这是连接到数据库的代码。在mysql中数据编码必须一致,否则就会有乱码。
分类:
Web程序 时间:
2014-05-02 17:35:28
阅读次数:
384
变换用户身份 su 命令
从普通用户切换到root用户需要密码,从root用户切换到普通用户不需要密码。这样的切换只是登陆的身份变为了root,文件的环境仍然没变。 su -命令
完全切换只允许root登陆,不允许其他普通用户登陆(是root登陆) 可以在/etc目录下建一个名为nologin的....
分类:
其他好文 时间:
2014-05-02 17:13:52
阅读次数:
401
出现下列错误:
mlogc.c:32:23: error: curl/curl.h: No such file or directory
mlogc.c:1091: error: expected ‘)’ before ‘*’ token
mlogc.c: In function ‘logc_init’:
出错原因:缺少libcurl-dev or libcurl-devel
...
分类:
其他好文 时间:
2014-05-02 10:50:35
阅读次数:
371
join函数利用字符将数组中的元素分割开.[root@localhost~]#find`perl-e‘@array=join("","@INC");print"@array";‘`-name*.pm|wc-l547这个例子是利用空格分开了要查找的路径,然后find可以查找所有的路径下匹配*.pm的文件,我一共查到了547个模块.
分类:
系统相关 时间:
2014-05-02 04:13:56
阅读次数:
311
1、计算机名:查看计算机名:在终端输入hostname修改的话hostname+计算机名(重启后失效)要永久修改的话要修改配置文件/etc/sysconfig/network修改hostname=你要改的名字例如:[root@webserverDesktop]#cat/etc/sysconfig/networkNETWORKING=yesHOSTNAME=webserver2、IP地址:..
分类:
系统相关 时间:
2014-05-02 03:11:07
阅读次数:
427