2014年7月22日

摘要: 一、常用远程拷贝命令1、scpscp /etc/hosts/file.txt user@remoteIP:/remotepath2、rsyncrsync -vzrtopgu --progress /etc/hosts 192.168.2.38:/etc/hostsrsync对应的服务是:xinet... 阅读全文

posted @ 2014-07-22 17:31 cookprogram 阅读(128) 评论(0) 推荐(0)

摘要: 重置一个普通用户密码,操作失败,系统报错:Have exhausted maximum number of retries for service。这里主要可能是由于该环境进行了安全加固在/etc/pam.d/system-auth 文件中auth required pam_ta... 阅读全文

posted @ 2014-07-22 13:44 cookprogram 阅读(3994) 评论(0) 推荐(0)


2014年7月14日

摘要: LevelDB在windows平台下的编译很麻烦,但是在linux中,安装和编译过程非常简单,主要步骤如下:下载源码:https://code.google.com/p/leveldb/LevelDB编译下载完成后,进入leveldb目录,使用make指令进行源码编译。cdleveldbmakeal... 阅读全文

posted @ 2014-07-14 19:24 cookprogram 阅读(481) 评论(0) 推荐(0)


2014年7月9日

摘要: C++模板中提供了sort方法,一般有两种方法:传递函数,传递一个对象。第一种方法:函数bool compare(const string &strLeft, const string &strRight){ return strLeft vtstrTest; vtstrTest.push_bac... 阅读全文

posted @ 2014-07-09 22:45 cookprogram 阅读(303) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3