#!/bin/bash
#初始数据库文件放在/soft目录下,备份数据库文件放在/tzxdb/backup/目录下
sif-stop
echo"正在停止应用,请等待1分钟"
sleep60
dbname=$(su-db2inst1-c"db2listdbdirectory"|sed-n"10p"|awk‘{print$5}‘|awk-F"/"‘{print$3}‘)
#获取数据库名
read-p"是否要备份..
分类:
数据库 时间:
2015-04-16 20:08:24
阅读次数:
188
namespace 赶羊递归 { class Program { public int jisuan(int day) //创建一个函数,输入day计算出羊的总数 { int sum=0; if(day==7) { sum = 2; return sum; //一定要加return截止 } su.....
分类:
其他好文 时间:
2015-04-16 01:04:05
阅读次数:
352
核心命令:gcc -M *.h、*.cpp转:自动处理头文件的依赖关系http://blog.csdn.net/su_ocean16/article/details/5374696现在我们的Makefile写成这样:all: mainmain: main.o stack.o maze.o gc...
分类:
其他好文 时间:
2015-04-15 19:29:57
阅读次数:
211
之前到现在很久没有用了,还是从安装说下,做个简单的实验,系统为Ubuntu14.04
sudo pip_python install supervisor
sudo echo_supervisord_conf > /etc/supervisord.conf # 会报错 permission denied: /etc/supervisord.conf,可以使用下面的语句
sudo su - roo...
分类:
其他好文 时间:
2015-04-15 13:34:32
阅读次数:
216
class Program { /// /// 每过一个村庄丢失之前的一般还多一只,7个村后还剩下2只 /// /// /// public int yangshu(int cun) { int sum = 0; if (cun==7) { sum = 2; return sum; } su...
分类:
其他好文 时间:
2015-04-14 19:31:36
阅读次数:
137
固定長度的字串(假設是 06481a63041b578d702f159f520847f8), 要照固定格式做切割, 使用 PHP 要怎麼切會比較快?註: 要將此字串切成 => 06 / 48 / 1a63041b578d702f159f520847f8 這三個字串.寫簡單的程式做個測試, 來比較su...
分类:
Web程序 时间:
2015-04-14 12:45:27
阅读次数:
113
Failed?to?execute?goal?org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test?(default-test)?on?project?TestWidget:?Execution?default-test?of?goal?org.apache.maven.plugins:maven-su...
分类:
系统相关 时间:
2015-04-14 00:48:43
阅读次数:
300
class Program { public int yang(int cun)//求的羊的数量 已知的是村的个数 { int sum = 0; for (int i = 7; i>=cun ; i--) { if (i==7) { sum = 2; } else { sum = (2 * (su....
分类:
其他好文 时间:
2015-04-14 00:13:15
阅读次数:
127
Earthstone is a famous online card game created by Lizard Entertainment. It is a collectible card game that revolves around turn-based matches between two opponents.
Players start the game with a su...
分类:
其他好文 时间:
2015-04-12 22:46:45
阅读次数:
266
ubuntu默认时区是Etc/UTC,和我们的北京时间相差8个时区,需要修改系统的时区,以下有两种简单方式修改系统时区:1.修改/etc/timezone文件vi /etc/timezone把Etc/UTC改成Asia/Shanghai,然后保存(:wq),重启机器.2.使用命令行交互界面修改.su...
分类:
系统相关 时间:
2015-04-12 20:51:11
阅读次数:
187