数据库 shell脚本笔记

索引数据查询

  • 连接:192.168.x.x user password

    • /usr/local/bin/quest -d /opt/sports/search/v3 -b XM:XM “XM:tag_1000001” -m 50 | wc -l
  • 连接192.168.x.x user password

     cd /usr/local/sports/search/indexer/tools/
     sudo vi checkindex.py
     ./checkindex.py /opt/sports/search/v3

redis

1、命令行

  • 打开Xshell/redis客户端
  • redis-cli -h 192.168.x.x -p 6379
  • 常用命令
    • SortedSet: zrevrange i:m:e:s:507 0 3
    • SortedSet: range i:m:s:246 0 3 withscores
    • Hash: hget key value
    • String: get key
ZINCRBY rt:match_945:propertyfingers 10 135601920106960358

ZSCORE rt:match_945:propertyfingers

ZINCRBY rt:match_4191:propertyfingers 10 135601920068872069

ZREM rt:match_4191:propertyfingers 135601920068872069
这个是删除这个记录

2、 redis client客户端

  • 按key查找

mongo

  • db.history.remove({‘match_id’:32, ‘data.payload.type’: 1})
  • db.getCollection(‘matchscore’).find({“match_id”:3932})
  • db.getCollection(‘matchscore’).remove({“match_id”:3932})
  • db.表名.find({})
  • db.表名.remove({})
    mongo查询

MySQL

jenkins打包shell脚本

currentData=`date '+%Y_%m_%d'`
currentTime=`date '+%H_%M_%S'`

mkdir -p ${WORKSPACE}/jenkins_ipas/$currentData

xcodebuild archive -workspace ${WORKSPACE}/Source/BFSports/BFSports.xcworkspace -scheme BFSports -configuration Release -archivePath ${WORKSPACE}/build_xcarchives/${BUILD_NUMBER}/BFSports.xcarchive

xcodebuild -exportArchive -archivePath  ${WORKSPACE}/build_xcarchives/${BUILD_NUMBER}/BFSports.xcarchive -exportPath ${WORKSPACE}/jenkins_ipas/$currentData/BFSports_${BUILD_NUMBER}_$currentTime.ipa -exportFormat ipa -exportProvisioningProfile "baofengsports_iphone_adhoc"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值