输入下面命令即可
:setpaste
这个是恢复
:setnopaste
……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-07-02
vim正则表达式
元字符说明
.匹配任意一个字符
[abc]匹配方括号中的任意一个字符。可以使用-表示字符范围,
如[a-z0-9]匹配小写字母和阿拉伯数字。
[^abc]在方括号内开头使用^符号,表示匹配除方括号中字符之外的任意字符。
d匹配阿拉伯数字,等同于[0-9]。
D匹配阿拉伯数字之外的任意字符,等同于[^0-9]。
x匹配十六进制数字,等同于[0-9A-Fa-f]。
X匹配十六进制数字,等同于[^……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-07-02
server{
listen80;
server_namet.jeexue.com;
#charsetkoi8-r;
#access_loglogs/host.access.logmain;
client_max_body_size100m;
location/{
root"D:/WorkFile/00000000000/USBWebserver8.5/root/jeexue.com/newjx";
indexindex.phpindex.htmlindex.htm;
if(!-e$request……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-07-02
$str=<<<end
<html>
<body>
<volistname="aaa"id="ff">
<p>演示操作</p>
</volist>
</body>
</html>
end;
$rule="/<volists([^>]*)>(.*?)</volist(s*?)>/eis";
$text=preg_match_all($rule,$str,$match……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-06-12
tp/Lib/Template/ThinkTemplate.class.php.ThinkTemplate->parseTagLib:384
tp/Lib/Template/ThinkTemplate.class.php.ThinkTemplate->parse:198
tp/Lib/Template/ThinkTemplate.class.php.ThinkTemplate->getIncludeTagLib:361
tp/Lib/Template/ThinkTemplate.cla……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-06-07
<VirtualHost*:80>
ServerNamecms.yixinu.com
DocumentRoot"{rootdir}/YixinuCMS"
DirectoryIndexindex.phpindex.html
<Directory"{rootdir}/YixinuCMS">
OptionsFollowSymLinks
AllowOverrideAll
Orderallow,deny
allowfromall
RewriteEngineon
RewriteCond%{R……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-05-28
1、编辑/etc/sudoers 文件
2、把这一行
%sudoALL=(ALL:ALL)ALL
改成这样
%sudoALL=(ALL:ALL)ALL,!/bin/su
保存退出,即可。……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-05-24
近期,央视又开始配合工信部鼓吹国产操作系统了,虽然工信部整天搞备案烦死人,但国产操作系统也许是真的需要的,一个超级大国没有底层的系统安全,将是一个很可怕的事情。但是,并不意味着国产操作系统就非要从linux内核到界面进行100%地重复发明车轮,而目前中国的IT企业似乎除了华为等少数外,都没有本源性创新的能力,所以,能够在一个相对靠谱的linux衍生版本基础上再造和延续下去,也是不错选择。
目前国内有机构和ubuntu合作推出优麒麟,是一个汉化版和加强版,他有一些进步的地方,比如在推动和搜狗合作,搜狗……
作者/来源:yixinu.com
栏目:运维/编程
日期:2014-05-14