DataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("a.txt")));
dos.writeInt(5);
dos.writeBoolean(true);
dos.flush();
dos.clos...
分类:
其他好文 时间:
2014-07-12 19:41:48
阅读次数:
203
在成功编译nginx的mips平台后,将其make install生成的文件打包放在rt5350的文件系统。
其中需要注意的是,在放入文件系统需要和编译安装的目录保持一致:如编译的时候有release的目录,所以在文件系统也需要相应的目录
release,并将conf ,html,logs文件拷贝,nginx放在sbin目录下。
另外在编译的时候指定了user及group如果文件系统尚未...
分类:
其他好文 时间:
2014-07-08 19:35:05
阅读次数:
373
代码块的重定向是指在代码块内将标准输入或标准输出重定向到文件,而在代码块外还是保留默认状态,换句话说,代码块重定向指对标准输入或者标准输出的重定向只在代码块内有效。可以重定向的代码块是while、until、for,也可以是if/then,甚至是函数。
while重定向
#!/bin/bash
ls /etc> logs
while [ "$filename" != "rc.d" ...
分类:
系统相关 时间:
2014-07-08 18:42:10
阅读次数:
278
1#!/bin/bash2set-x3dir=/export/servers/nginx45stop()6{7#pkill-f$dir/perl-fcgi.pl8kill$(cat$dir/logs/perl-fcgi.pid)9rm$dir/logs/perl-fcgi.pid2>/dev/nul...
分类:
移动开发 时间:
2014-07-07 10:00:30
阅读次数:
252
openfire 安装报这个错误 A connection to the database could not be made. View the error message by opening the "\logs\error.log" log file, then go back to fix...
分类:
数据库 时间:
2014-07-06 16:43:00
阅读次数:
284
1. 输出缓冲区的刷新
我们的程序已经使用过endl 操纵符,用于输出一个换行符并刷新缓冲区。
除此之外,C++语言还提供了另外两个类似的操纵符。第一个经常使用的flush,
用于刷新流,但不在输出中添加任何字符。第二个则是比较少用的ends,这个
操纵符在缓冲区中插入空字符null,然后后刷新它:
cout
cout
cout
2. unitbuf 操纵符
如果...
分类:
编程语言 时间:
2014-07-06 11:53:03
阅读次数:
267
javax.servlet.ServletException:Illegaltoflushwithinacustomtag
此错误是因为在JSP页面中的某一个自定义标签的doStartTag或doEndTag中用了out.flush,而其他的自定义标签没有导致。可以去掉out.flush。
分类:
Web程序 时间:
2014-07-05 23:17:30
阅读次数:
382
user www www;worker_processes 2;error_log /usr/local/nginx/logs/nginx_error.log crit;pid /usr/local/nginx/logs/nginx.pid;#Specifies the valu...
分类:
其他好文 时间:
2014-07-05 20:48:19
阅读次数:
245
具体说法就是可以缓存变量信息。设置:Yii::app()->cache->set(名字, 值, 过期时间);使用:Yii::app()->cache->get(名字);删除:Yii::app()->cache->delete(名字);清空:Yii:app()->cache->flush();缓存数据...
分类:
其他好文 时间:
2014-07-03 23:34:15
阅读次数:
462
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges;grant select on weixin.wx_tuijian to 'bbc....
分类:
数据库 时间:
2014-07-02 17:55:37
阅读次数:
229