码迷,mamicode.com
首页 > 其他好文
用rsync同步公网centos yum源做本地yum源服务器
用rsync同步公网centosyum源做本地yum源服务器1,安装httpd,rsync,vsftpdyum-yinstallhttpdrsyncvsftpdmkdir/var/www/html/centos#由于vsftpd不支持软连接改变目录,所以下面操作效果一样mount--bind/var/www/html/centos/var/ftp/pubchkconfighttpdonchkconfigvsftpdonservi..
分类:其他好文   时间:2014-08-08 02:12:35    阅读次数:355
清理apache日志
在不关闭apache服务的情况下清理日志。#cat/dev/null>access_log#cat/dev/null>error_log#cat/dev/null>mod_jk.log还未测试效果,仅供参考。
分类:其他好文   时间:2014-08-08 02:12:15    阅读次数:268
委托二--------使用委托实现冒泡排序
-------------------------------------------------------------Proson.csusingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { publicclassProson { publicstringName{get;priv..
分类:其他好文   时间:2014-08-08 02:12:05    阅读次数:184
浅谈设计模式3-模板方法模式
模版方法模式,个人认为还是用处比较多的一个设计模式,而且也是比较好学和理解的一个。依然来通过模拟一个场景来慢慢了解。现在我们来实现一下泡茶这个过程。首先我们需要烧开一壶水,然后往茶壶中放茶叶,加入开水,等待茶泡好。经过前两次的分享,大家应该具备了基本的面向..
分类:其他好文   时间:2014-08-08 02:11:36    阅读次数:218
委托三------------多播委托与匿名方法
============================================多播委托-------------------------------------主程序usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication3 { classProgram { stati..
分类:其他好文   时间:2014-08-08 02:10:55    阅读次数:272
【CentOS】如何在线安装pcre?
EA003317441NL1.检查CentOS系统是否安装prce,如果已安装则会显示pcre的版本信息[root@localhost/]#rpm-qapcrepcre-7.8-6.el6.i6862.删除pcre包[root@localhost/]#rpm-e--nodepspcre[root@localhost/]#rpm-qapcre3.在线安装pcre[root@localhost/]#yuminstallpcre4.查看pcre的安..
分类:其他好文   时间:2014-08-08 02:10:15    阅读次数:355
UID,GID,粘滞位,setattr,lsattr
我们有的时候有这样的需要,允许一人用户查看修改其它用户的文件,但不允许删除。用一个普通用户执行一个命令,但这个命令的运行身份是root。因为linux系统权限设置过于简单,像做这些事情就需要用到facl了。facl是fileaccesscontrollist的缩写。当一个用户访问一个文件时,文..
分类:其他好文   时间:2014-08-08 02:09:55    阅读次数:288
在libvirt 中体验容器
libvirt是一个通用的虚拟化框架,支持xen,kvm,lxc多种虚拟化技术,本文作为一个笔记。设置LXC为默认(默认为qemu)export LIBVIRT_DEFAULT_URI=lxc:///virsh -clxc:///可省略网络设置NATNAT是libvirt默认自带,叫做default,通过下面的 命令查看virshnet-list假设宿主机有两..
分类:其他好文   时间:2014-08-08 02:09:45    阅读次数:264
NSArray NSMutableArray   NSNumber 方法
@font-face{font-family:"宋体";}@font-face{font-family:"宋体";}@font-face{font-family:"@宋体";}@font-face{font-family:"Cambria";}@font-face{font-family:"HeitiSCLight";}@font-face{font-family:"@HeitiSCLight";}@font-face{font-family:"MenloRegular";}p.MsoNormal..
分类:其他好文   时间:2014-08-08 02:09:35    阅读次数:252
LAMP+Centos6.5上安装zabbix
系统版本:centos6.5内核版本:2.6.32-358.el6.x86_64yum安装LAMP环境;yuminstall-ygccgcc-c++httpdhttpd-develmysqlmsql-servermysql-develphpphp-mysqlphp-commonphp-gdphp-mbstringphp-mcrtptphp-develphp-xmlphp-bcmathlibcurl-develnet-snmp-devel2.添加用户及组;groupa..
分类:其他好文   时间:2014-08-08 02:08:46    阅读次数:423
DNS 配置篇二
DNS配置篇二一、子域配置1、基本概念子域的作用是在本地DNS下再划分一个小的(子)DNS。作用的方便集中管理,不过问题是要配置转发。父DNS可以知道解析子DNS,子DNS则只可以解析自己本地记录,不能解析父DNS。正向子域授权:只需要在父域的区域解析库中添加“胶水记录”,gluer..
分类:其他好文   时间:2014-08-08 02:08:35    阅读次数:316
别了dvorak!-----论qwert、dvorak布局优劣
存在即合理!一个程序员面对大家的建议。...
分类:其他好文   时间:2014-08-08 02:07:25    阅读次数:167
Maven详解之聚合与继承
Maven的聚合与继承,如何在项目中正确的使用聚合与继承,来提高项目的可读性和可用性。如何做到项目的依赖管理和插件的正确管理?...
分类:其他好文   时间:2014-08-08 02:07:15    阅读次数:276
poj1827A Bunch Of Monsters(贪心)
题目链接: 啊哈哈,点我点我 题目意思: 给出n个怪物可以拿到卡片的范围和这个怪物对主人公造成的伤害。。然后求最后得到怪物对主人公的最小伤害。。 思路:对怪物造成的伤害从大到小排序,然后对n个怪物进行逐一枚举,枚举时对它的时间进行逆向枚举,然后没有被访问到的将其伤害降为0,最后统计一下即可。 题目: A Bunch Of Monsters Time Lim...
分类:其他好文   时间:2014-08-08 02:06:45    阅读次数:277
通过log4j保存异常信息
log4j.properties: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.la...
分类:其他好文   时间:2014-08-08 02:06:35    阅读次数:236
LeetCode :: Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possible o...
分类:其他好文   时间:2014-08-08 02:06:05    阅读次数:207
No bean named 'cxf' is defined
1、错误描述  严重:Exception starting filter CXFServlet        org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'cxf' is defined 2、错误原因 3、解决办法...
分类:其他好文   时间:2014-08-08 02:05:55    阅读次数:554
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!