命令执行判断依据--;,&&,||在linux运维过程中或者日常linux系统操作过程中会同时执行多条命令,这样的话需要通过我们的多重命令方式进行处理。通过使用‘;‘分号执行多个命令,如例:#sync;sync;shutdown-hnow通过判断执行命令,&&/||执行情况如例:cmd1&&..
分类:
系统相关 时间:
2014-08-11 15:18:34
阅读次数:
257
During normal app use, the foreground activity is sometimes obstructed by other visual components that cause the activity to pause. For example, when a semi-transparent activity opens (such as one in the style of a dialog), the previous activity pauses. As...
分类:
移动开发 时间:
2014-08-09 02:36:37
阅读次数:
366
Kafka提供了Producer类作为java producer的api,该类有sync和async两种发送方式。...
分类:
其他好文 时间:
2014-08-08 18:22:46
阅读次数:
276
题意 所有可以表示为4*k+1(k>=0)的数都称为“H数” 而在所有“H数”中只能被1和自身整除的H数称为“H素数“ 能表示成两个”H素数“积的数又称为”Semi-prime H数“
输入n 求1到n之间有多少个”Semi-prime H数“;
方法 先打个H素数表 再用H素数表中的数依次相乘 得到的数都标记 再用一个数组保存每个数以内的标记数 输入n后直接读数组就行了...
分类:
其他好文 时间:
2014-08-07 23:11:35
阅读次数:
265
一、什么是redis主从复制? 主从复制,当用户往Master端写入数据时,通过Redis Sync机制将数据文件发送至Slave,Slave也会执行相同的操作确保数据一致;且实现Redis的主从复制非常简单。 二、redis主从复制...
分类:
其他好文 时间:
2014-08-07 19:26:40
阅读次数:
259
linuxsyncserver1对多同步实例需求:线上也业务需求,意思就是N台机器需要维护各自机器上的一个目录,并且他们都是相同滴。so,这两天想了下,决定使用rsyncserver+inotify来解决这个问题。当然有的人会用自动化工具来推,但是我这里这个文件可能每次只改里面1小点内容,推个一..
分类:
系统相关 时间:
2014-08-07 07:34:39
阅读次数:
349
这是3月份某客户的情况,原因是server硬件故障后进行更换之后,业务翻译偶尔出现提交缓慢的情况。我们先来看下awr的情况。我们能够看到,该系统的load profile信息事实上并不高,每秒才21个transaction。先来看看top5events:从top 5event,我们能够发现,log ...
分类:
其他好文 时间:
2014-08-05 13:48:49
阅读次数:
387
软件环境:Windows Server 2008 R2 sp1 SQL Server 2008 R2 sp2架构:ServerA(主体)+ServerB(镜像)+ServerSub(订阅)+ServerDist(分发)特别注意:ServerDist分发服务器为单机,故开启了Sync_With_Bac...
分类:
数据库 时间:
2014-08-04 14:04:47
阅读次数:
381
1.安装 nfs 服务yum install nfs-utils rpcbindchkconfig nfs on2.exprotfs 文件/usr/sbin/exportfs -rvcat /etc/exports/home/ 10.0.2.0/24(rw,sync,all_squash,anonu...
分类:
其他好文 时间:
2014-08-03 22:57:26
阅读次数:
172
root@node1glance]#su-s/bin/sh-c"glance-managedb_sync"glanceTraceback(mostrecentcalllast):File"/usr/bin/glance-manage",line10,in<module>sys.exit(main())File"/usr/lib/python2.6/site-packages/glance/cmd/manage.py",line253,inmainlog.setup(‘glance‘)File"/u..