码迷,mamicode.com
首页 >  
搜索关键字:usr    ( 26217个结果
cocoapods 使用pod install失效解决方法
在使用pod install命令后,一直处于analyzing dependencies的状态,之后出现error:[!] An error occurred while performing `git pull` on repo `master`. [!] /usr/bin/git pull --...
分类:其他好文   时间:2014-07-30 20:24:34    阅读次数:237
csync+lsync 实时双向批量同步小文件
cysnc+lsync配置安装环境ubuntu12.041)两台机器安装配置:apt-getinstallxinetdcsync2lsyncdcat/etc/xinetd.d/csync2 servicecsync2 { disable=no port=30865 socket_type=stream protocol=tcp wait=no user=root passenv=PATH server=/usr/sbin/csync2 server_args=-i }2)no..
分类:其他好文   时间:2014-07-30 17:56:34    阅读次数:1527
yum下提示Another app is currently holding the yum lock
解决方案:1、查看:ps-ef|grepyumroot31601014:47?00:00:00/usr/bin/python-tt/usr/sbin/yum-updatesdroot33403160014:47?00:00:00/usr/bin/python-tt/usr/libexec/yum-updatesd-helper--check--dbusroot34583374014:56pts/100:00:00grepyum2、kill31603340(kill掉相关进程,..
分类:移动开发   时间:2014-07-30 17:52:04    阅读次数:282
Cheetah使用出错!You don't have the C version of NameMapper installed!
1.错误 /usr/lib/python2.5/site-packages/Cheetah/Compiler.py:1532: UserWarning:  You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully s...
分类:移动开发   时间:2014-07-30 17:35:24    阅读次数:1427
Python札记 -- MongoDB模糊查询
最近在使用MongoDB的时候,遇到了使用多个关键词进行模糊查询的场景。竹风使用的是mongoengine库。 查了各种资料,最后总结出比较好用的方法。先上代码,后面进行详细说明。如下: 1 #!/usr/bin/env python 2 #coding:utf-8 3 4 import re .....
分类:数据库   时间:2014-07-30 17:10:54    阅读次数:407
shell 检查一个单词是否在字典中
#!/bin/bash#文件名:checkword.shword=$1grep "^$1$" /usr/share/dict/linux.words -qif [ $? -eq 0 ];then echo $word is a dictionary word;else e...
分类:其他好文   时间:2014-07-30 17:10:13    阅读次数:180
Linux获取apk包名,版本号
1、将来aapt和apktool拷贝到/usr/bin/下面 2、运行aapt报错: -bash: /usr/bin/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 解决:反查需要的文件在哪个包中 yum whatprovides *...
分类:系统相关   时间:2014-07-30 15:07:05    阅读次数:583
my-pos.cnf
[mysql@st2-cloudpos-14mysql]$catmy-pos.cnf[client]port=3306socket=/home/mysql/mysql/mysql/mysqld.sock#prompt="(\u@\h\\R:\\m:\\s)[\d]>"default-character-set=utf8[mysqld_safe]user=mysqlnice=0#ledir=/usr/local/mysql/libexec[mysqld]server-id=1port=3306pid-fi..
分类:其他好文   时间:2014-07-30 14:59:54    阅读次数:248
使用cronolog 分割Tomcat日志
作者:沈小然??? 日期:2014-7-30 安装cronolog 官网下载:http://cronolog.org/usage.html ./configure make;make install 默认安装位置: # which cronolog /usr/local/sbin/cronolog 配置分割Tomcat日志 编...
分类:其他好文   时间:2014-07-30 12:35:44    阅读次数:342
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!