mongodb
1.汉字排序问题
1.查看某个文件内每一行字符最长的前几行 awk '{print length($0),$0}' indexua20130502.txt | sort -k1,1nr |more或者cat a.txt |while read i;do echo ${#i} $i;done|sort -nr2.文件内容按照长度排序(上面的命名也可以)cat a.txt | awk '{pri
SecureCRT 官网有Ubuntu12.04的软件包下载 http://down.51cto.com/data/925246安装方法:dpkg -i scrt-7.0.0-326.ubuntu11-64.x86_64.deb运行SecureCTR之后会在家目录下生成一个文件:~/.vandyke/Config/SecureCRT_eval.lic删除这个文件后再运行程序会再次生成,而且试用时间
#!/bin/sh# dt=`date +%Y%m%d%H%M`FN='/data/svn_test/modifylist/'$dtSVNDES='/home/linux/work/svn'if [ $# -eq 2 ];then cd /home/linux/work/svn &nb
ubuntu 飞信 openfetion 联系人空 没有联系人 解决方案在ubuntu的 /etc/rc.local 中添加下面一行命令应该可以解决/bin/rm -fr /home/linux/.openfetion
1. 安装前apt-get install gcc gcc-c++ autoconf make libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-
error while loading shared libraries的解決方法 gearman: error while loading shared libraries: libgearman.so.8: cannot open shared object file: No such file or directory 那就表示系统不知道xxx.so 放在
setup ubuntu-11.10-server-amd64.iso 虚拟机安装 1.找回root密码 ubuntu11的root密码是没有设置,需要在安装之后设置,需要用sudo 命令来添加ROOT用户密码 方法1:sudo su root 之后输入开始用户的密码,再输入新root的密码 2.通过S
初始目标:通过linux脚本读取redisserver的某个键值 脚本如下: ########################################## # example1: ./getredis.sh [key] # example2: ./getredis.sh [key] (ttl) #()include commands:get,ttl,
下载Zend Optimizer 版本是:ZendOptimizer-3.2.6-Windows-i386.zip 安装 Zend Optimizer 先停止Apache 安装zend之后 修改php.ini文件增加对Zend的支持,查找zend.ze1_compatibility_mode = Off 改为zend.ze1_compati
小米手机中host文件位置【system/etc/hosts】
"List Directory" => "dir", "Find index.php in current dir" => "dir /s /w /b index.php", "Find *config*.ph
yum -y install libevent-devel cd .. tar zxf libunwind-snap-070410.tar.gz cd libunwind-snap-070410.tar.gz cd libunwind-0.99-alpha/ ./configure make && make
#!/bin/sh path=`pwd` #获取当前路径 target='/data/www/navidog.cn/'#将要备份和文件夹覆盖的目录 dt=`date +%Y%m%d%H%M`#备份的时间 ap=`tar -czPf /z_bak/vip_code_$dt.tar.gz $target/*`#备份命令 if [ $# -eq
################################################################### #测试服务器重新启动的过程: #数据库启动 su postgres /usr/local/lnpp/pgsql/bin/pg_ctl -D /data/postgres -l logfile start #启动ng
启动安装: http://elain.blog.51cto.com/3339379/705846 redis下载: https://github.com/nicolasff/phpredis/downloads 多台服务安装: http://www.vquickphp.com/?a=blogview&id=30 开
判断Linux/Unix为32位或64位方法一:$uname -mx86_64 (64位)i686 (32位)方法二:$getconf LONG_BIT32 (32位)64 (64位)方法三:$ file /sbin/init/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically li
#!/bin/sh path=`pwd` target='/data/www/navidog.cn/' dt=`date +%Y%m%d%H%M` ap=`tar -czPf /z_bak/vip_code_$dt.tar.gz $target/*` if [ $# -eq 1 ];then tmp=`/bin/
1。写shell脚本 !#/bin/sh svn --username hanhh --password 111111 up https://192.168.1.223/svn/website_php/source /data/www/navidog.cn/ 2。运行命令:crontab -e 3
server { listen 80; server_name abc.com; index index.html index.htm index.php; r
Nginx Location配置总结 十一 02 ToFishes服务器 No Comments 参考来源: http://blog.zol.com.cn/1067/article_1066186.html,http://flandycheng.blog.51cto.com/855176/280121 语法规则: location [=|~|~*
以下安装过程为我在酷配网工作期间, 酷配网整个外网所需服务的安装过程以及注意事项 一 安装所需软件包 LANG=C yum -y install gcc gcc-c++ gd* autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxm
主要功能: 1.将当前目录下的【hosts_ext】 拷贝到【C:\WINDOWS\system32\drivers\etc\】目录且更改文件名为【hosts】 2.更改本目录下的文件【host_ext】 为【hosts】 @echo off copy /Y hosts_ext C:\WINDOWS\system32\drivers\etc\hosts copy /Y h
1.mysql 添加用户 grant select,insert,update,delete on *.* to k8cms@localhost Identified by "k8cms"; grant select,insert,update,delete on *.* to k8cms@"%" Identified
查看linux系统信息概要 uname -a cat /etc/issue cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c cat /proc/cpuinfo | grep physical | uniq -c getconf LONG_BIT cat /proc/cpuinfo | grep flags | grep ' l
在脚本中执行变量替换时最容易犯的错误就是由于引用错误。为防止引用时产生误解,shell有一下引用类型 双引号“”:可引用除$、`、\外任意字符或字符串,最好在反馈文本字符串时全使用双引号 单引号‘’:可引用引号里所有字符(包括引号) $ A=‘a’ &n
#脚本功能:查找某个文件夹,将符合条件文件夹的指定文件名拷贝成其他的文件名 #shell点:遍历文件夹,判断指定文件路径,查找文件,文件名替换 #!/bin/sh func(){ curdir=$1 local path=$curdir for file in `ls $curdir` do if [ -d &
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号