码迷,mamicode.com
首页 >  
搜索关键字:exec    ( 7347个结果
php -- PHP在linux上执行外部命令,system(),exec(),shell_exec()
目录:一、PHP中调用外部命令介绍二、关于安全问题三、关于超时问题四、关于PHP运行linux环境中命令出现的问题一、PHP中调用外部命令介绍在PHP中调用外部命令,有三种方法:1. 调用专门函数2. 反引号3. popen()函数打开进程方法一:调用PHP提供的专门函数(四个):PHP提供4个专门...
分类:Web程序   时间:2015-05-15 15:09:40    阅读次数:831
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,TimeUnit.MILLISECONDS, new LinkedBlockingQueue(100000),new ThreadPoolExecutor.Ca...
分类:其他好文   时间:2015-05-15 13:35:50    阅读次数:115
Redis(二) 扩展
事务multi ... exec 之间的操作先进入等待队列,到exec时一起执行 事物的所有操作结果都是一起返回的,所以前一条指令的结果无法作为后一条指令的参数 其中的指令有语法错误时,都不执行;有“类型不匹配”等逻辑错误时,只执行对的指令;没有回滚 watch 监控一个或多个key 一...
分类:其他好文   时间:2015-05-14 13:33:47    阅读次数:97
Linux环境下Tomcat运行报错java.lang.OutOfMemoryError
va.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: PermGen space 进入Tomcat中的/bin/catalina.sh? 在catalina.sh中添加如下...
分类:编程语言   时间:2015-05-14 12:26:33    阅读次数:202
sql sever 跨库查询
exec sp_configure 'show advanced options',1reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1reconfigureselect * from openrowset( 'SQLOLEDB',...
分类:数据库   时间:2015-05-14 11:46:14    阅读次数:161
PHP脚本监控Nginx 502错误并自动重启php-fpm
服务器时不时出现Nginx 502 Bad Gateway,如果在电脑旁边还好,要是半夜或者出去了,怎么办?没关系,写个脚本检测服务状态,发现异常,自动重启。自动重启脚本:/dev/null"; $res = shell_exec($exec); if(strip...
分类:Web程序   时间:2015-05-14 08:36:20    阅读次数:185
HIVE: UDF应用实例
数据文件内容TEST DATA HEREGood to Go我们准备写一个函数,把所有字符变为小写.1.开发UDFpackage MyTestPackage;import org.apache.hadoop.hive.ql.exec.UDF;import org.apache.hadoop.io.T...
分类:其他好文   时间:2015-05-14 00:56:24    阅读次数:219
Linux Command Tips
1.delete all executable files under certain directoryfind /directory -type f -executable -deleteorfind /directory -type f -executable -exec rm -f {} ....
分类:系统相关   时间:2015-05-14 00:43:25    阅读次数:176
动态的调用输出查询语句中的值 execute sp_executesql
1. 单个的查询:语法:execute sp_executesql sql语句,参数,变量=@count output例:declare @exec_sqlCount nvarchar(1000)declare @count intset @exec_sqlCount= 'select @count...
分类:数据库   时间:2015-05-14 00:41:37    阅读次数:194
nginx防止注入
添加蓝色部分,配置如下:server{listen80;server_nameq1.xx.cn;root/kuaidihelp_sto/web/www;indexindex.phpindex.htmlindex.htm;#注入过滤if($request_uri~*"([+|(%20)]and[+|(%20)])|([+|(%20)]or[+|(%20)])|([+|(%20)]select[+|(%20)])|([+|(%20)]exec[+|(%20)])|([+|(%20)..
分类:其他好文   时间:2015-05-13 20:03:09    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!