func stringmid_pl (wholestring:String,front:String,behind:String,inout return_string:String,getheroid:Bool) { //数组参数inout // var whole_tmp:String = wh ...
分类:
编程语言 时间:
2016-05-13 10:59:52
阅读次数:
217
我在SQL 2008R2 里面用下面的命令成功导出excel 文件。 EXEC master..xp_cmdshell 'bcp "select * from Car_data.dbo.CarInfo" queryout d:\tmp.xls -c -q -S"." -U"sa" -P"123456 ...
分类:
数据库 时间:
2016-05-13 10:20:11
阅读次数:
194
root@ubuntu-B85M-D3H:~/tmp# cat java_Analy.sh #!/bin/bash T=`ps -mp $1 -o THREAD,tid,time|sort -k 2 -nr|awk '{print $2","$8","$9}'|head -n 11|grep -v ...
分类:
编程语言 时间:
2016-05-13 09:33:06
阅读次数:
333
有几种方法可以实现1)使用rsync--excludecd/usrrsync-avP--exclude=dirc/tmp/home/xx/注意dirc/后面的/一定要,指名是目录,如果不加的话dirc文件也会被排除如果想排除多个目录或文件的话使用rsync-avP--exclude-from=/usr/exclude.listphp/bak[root@localhostphp]#rsync-avP-..
分类:
其他好文 时间:
2016-05-13 05:22:58
阅读次数:
204
#!/bin/bash
serviceiptablesstop
setenforce0
read-p"inputyourip:"IP
echo$IP>/tmp/ip
awk-F\.-vOFS=‘.‘‘{print$3,$2,$1}‘>>/tmp/ip2/tmp/ip
ZIP=`cat/tmp/ip2`
awk-F\.-vOFS=‘.‘‘{print$4}‘>>/tmp/ip3/tmp/ip
LIP=`cat/tmp/ip3`
NET=/etc/sysconfig/network..
分类:
其他好文 时间:
2016-05-13 05:11:56
阅读次数:
194
解决linux系统下因分区目录划分过小,导致tomcat使用系统临时文件夹(/tmp)没有足够空间而报错的问题1. 故障现象.B/S应用进行文件上传后,系统反馈:没有足够的磁盘空间(No enough space available).检查文件占用情况如下:[root@qa1 /]# df -h
Filesystem Size Used Avail Use% Mount...
分类:
系统相关 时间:
2016-05-13 03:00:31
阅读次数:
299
Memcache安全配置概念memcached -d -m 100 -u root -l x.x.x.x -p 11211 -c 512 -P /tmp/memcached.pid
参数说明:-d选项是启动一个守护进程;
-m是分配给Memcache使用的内存数量,单位是MB,我这里是100MB;...
分类:
系统相关 时间:
2016-05-12 23:01:50
阅读次数:
239
1 redis简单的配置文件
[root@192.168.56.159 7007]cat redis.conf
daemonize yes
pidfile /var/run/redis7007.pid
port 7007
tcp-backlog 511
timeout 0
tcp-keepalive 0
loglevel notice
logfile "/tmp/redis7007.log"...
分类:
其他好文 时间:
2016-05-12 21:34:26
阅读次数:
178
FTP文件上传下载及验证有时候经常用到FTP的上传下载,本身代码相对比较简单,但有时需要考虑到文件上传下载进行验证。大体思路是上传时将FTP日志重定向到本地文件,再根据FTP返回码进行检查,这样有个缺点就是不能检验文件上传的完整性;下载时利用ls,ll命令查看是否存在。上传代码uploadFile() {
ftp -i -v -n </tmp/ftp.log
open $FTP_IP...
分类:
Web程序 时间:
2016-05-12 20:13:06
阅读次数:
168
今天在安装oraclerac的时候,在图形安装界面下ssh直通一直不同过。查找问题,判断是应为oracle对ssh7.2不支持。
ssh版本降下去后,可以正常安装。
或者安装完rac后,在升级ssh不受影响。
配置ssh直通
oracle11g 不支持7.2
[root@bmfw-ora1 ~]# more /tmp/OraInstall2016-04-26_02-45-26PM/ss...
分类:
数据库 时间:
2016-05-12 19:45:32
阅读次数:
456