上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: linux下安装: $:cd /php7.0/ext/mbstring 切换到源码包目录下 $:/usr/local/php/bin/phpize 执行这句 $:./configure –with-php-config=/usr/local/php/bin/php-config 重新编译 $:sud 阅读全文
posted @ 2017-09-06 11:18 JahanGu 阅读(402) 评论(0) 推荐(0)
摘要: 通过 Composer 安装 如果还没有安装 Composer,在 Linux 和 Mac OS X 中可以运行如下命令: curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/compose 阅读全文
posted @ 2017-09-06 11:15 JahanGu 阅读(263) 评论(0) 推荐(0)
摘要: 在数据库表中,对字段建立索引可以大大提高查询速度。假如我们创建了一个 mytable表: 复制代码 代码如下: CREATE TABLE mytable( ID INT NOT NULL, username VARCHAR(16) NOT NULL ); 我们随机向里面插入了10000条记录,其中有 阅读全文
posted @ 2017-09-06 11:14 JahanGu 阅读(1017) 评论(0) 推荐(0)
摘要: 1:在控制器内成员变量设置 public $layout = false; //不使用布局 public $layout = “main”; //设置使用的布局文件 2:在控制器成员方法内设置 $this->layout = false; //不使用布局 $this->layout = “main” 阅读全文
posted @ 2017-09-06 11:13 JahanGu 阅读(236) 评论(0) 推荐(0)
摘要: 问题: 能上传小于10k的文件,上传大于10k的文件就会报500错误 解决办法: 首先查看错误日志,看看报错是什么 其次查看client_body_temp的权限问题 linux下面输入命令nginx -V 看看自己的client_body_temp在哪个目录下 注意nginx运行的用户,目录权限包 阅读全文
posted @ 2017-09-06 11:12 JahanGu 阅读(2306) 评论(0) 推荐(0)
摘要: 在linux下面使用命令crontab -e 编辑任务; [adv@localhost]$ crontab -e 之后开始编辑任务 * * * * * cd /home/adv/work/cutter_log/ && bash ./cutlog_minute.sh >> ./log/run.log 阅读全文
posted @ 2017-09-05 17:12 JahanGu 阅读(247) 评论(0) 推荐(0)
摘要: 首先按F12; 看看”控制台“或者”网络“是否说找不到页面404 如果出现404,则是/mobile/index.php?m=install&c=index&a=importing方法出错 m = 模块 c = 控制器 a = 方法 查看mobile/include/apps/install/con 阅读全文
posted @ 2017-09-05 17:11 JahanGu 阅读(471) 评论(0) 推荐(0)
摘要: 在PHP程序中,常常会遇到这种问题,上传附件时明明成功上传了很多附件,如图片等,但实际上只存在20个附件,或者直接报错无法上传。 在DEDECMS5.7编辑图集的时候,发现只要超过20张图片保存就会出错,提示如下: PHP Warning: Maximum number of allowable f 阅读全文
posted @ 2017-09-05 17:10 JahanGu 阅读(6553) 评论(0) 推荐(1)
摘要: 1.查看是否已经安装Python CentOS 7.2 默认安装了python2.7.5 因为一些命令要用它比如yum 它使用的是python2.7.5。 使用 python -V 命令查看一下是否安装Python 然后使用命令 which python 查看一下Python可执行文件的位置 可见执 阅读全文
posted @ 2017-08-30 12:43 JahanGu 阅读(69304) 评论(4) 推荐(3)
摘要: 1.下载mysql 网址: https://dev.mysql.com/downloads/mysql/ 2.选择源码包,通用版点击下载 直接下载就可以了,不用登录 3.解压编译 先安装相关依赖包 yum install pcre pcre-devel zlib zlib-devel openssl 阅读全文
posted @ 2017-08-29 16:24 JahanGu 阅读(916) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页