./configure --prefix=/usr/local/php7 \ --with-config-file-path=/usr/local/php7/etc \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=m ...
分类:
Web程序 时间:
2016-05-08 06:43:31
阅读次数:
161
最近项目中遇到用三星手机拍照,图片会自动旋转,应该是三星内部系统的功能,然后需要是不让他旋转,找到了方法。
原理就是,获取到图片,判断它的旋转角度,然后相应的旋转回来。
在拍照的返回结果中,获取到图片的路径。
path = filePath + fileName; //path 为拍照返回的路径
File file = new File(path...
分类:
移动开发 时间:
2016-05-07 07:55:39
阅读次数:
1048
有时候我们需要对一些服务器日志进行分析,并对其中错误的日志进行报警,在这里我们采用logstash来收集这些日志,和采用自己开发的邮件发送系统来发送错误日志数据。
例如我们有几个文件需要监控(BI日志)
我们可以通过配置logstash来收集这些文件日志
input{
file{
path=> "/diskb/bidir/smartbi...
分类:
其他好文 时间:
2016-05-07 07:14:34
阅读次数:
638
解决方案: http://stackoverflow.com/questions/28063598/error-while-executing-plist-file-path-had-bad-ownership-permissions 主要是以下的两个命令行: ...
分类:
系统相关 时间:
2016-05-06 20:22:01
阅读次数:
2104
1. get current path of where you are cur_path = os.getcwd() ...
分类:
编程语言 时间:
2016-05-02 22:39:08
阅读次数:
165
Configuration File (php.ini) Path /usr/local/php7/etc 这个目录下面也有php.ini文件(如果在编译./configure -with-config-file-path=/usr/local/php56/etc 指定了该参数的话) ,php-fp ...
分类:
Web程序 时间:
2016-05-02 18:37:35
阅读次数:
1009
转:https://www.ttlsa.com/nginx/nginx-root_alias-file-path-configuration/ 总结: alias 改变了访问路径。root对应location匹配位置的 第一个/ alias对应location匹配位置的最后一个 / 如:root / ...
分类:
其他好文 时间:
2016-04-20 22:02:15
阅读次数:
340
如何将Oracle 11g备份的dat文件导入到10g数据库里面 解决方法: 导出的时候后面加上目标数据库的版本号 导出: 在SQL plus下执行:create or replace directory file_path as 'E:\';--创建导出\导入文件存放路径(我的是放在E盘)在cmd ...
分类:
数据库 时间:
2016-04-11 18:52:12
阅读次数:
330
cd/usr/local/src/wgethttp://cn2.php.net/get/php-5.4.36.tar.bz2/from/this/mirrormvmirrorphp-5.4.36.tar.bz2tarjxfphp-5.4.36.tar.bz2cdphp-5.4.36./configure\--prefix=/usr/local/php\--with-apxs2=/usr/local/apache2/bin/apxs\--with-config-file-path=/usr/local/php/..
分类:
Web程序 时间:
2016-04-05 20:08:07
阅读次数:
253
修改ibdata1大小的验证 ibdata是共享表空间,在MySQL初始化的时候就生成了。 但很多童鞋会看到网上各种大神的调优建议,在MySQL已经初始化的情况下,修改配置文件中innodb_data_file_path=ibdata1:12M:autoextend。导致MySQL启动的时候报错。 ...
分类:
数据库 时间:
2016-03-31 18:57:51
阅读次数:
378