摘要: 更新yum源: cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak1 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo yum makecache 参考链接:http 阅读全文
posted @ 2018-07-19 01:30 Bender9527 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: location /yii/web/ { try_files $uri $uri/ /yii/web/index.php?r=$request_uri; } 参考链接: https://www.yiiframework.com/wiki/15/how-to-hide-index-php-on-ngi 阅读全文
posted @ 2018-05-21 16:24 Bender9527 阅读(155) 评论(0) 推荐(0) 编辑
摘要: php: js: 阅读全文
posted @ 2018-02-08 13:43 Bender9527 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 1) phpmyadmin: a.开启事件 b.运行sql语句 CREATE EVENT `yl_change_order_status`ON SCHEDULE EVERY 10 SECOND STARTS '2018-02-07 00:00:00'ON COMPLETION PRESERVEDO 阅读全文
posted @ 2018-02-07 11:37 Bender9527 阅读(101) 评论(0) 推荐(0) 编辑
摘要: yum install httpd httpd-devel yum install mysql mysql-server yum install php php-devel 重启apache 配置apache和mysql开机自启 chkconfig --level 2345 apache on ch 阅读全文
posted @ 2017-10-29 14:36 Bender9527 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 用了前五步解决问题 http://blog.csdn.net/m_m254282520/article/details/53126807 1. CentOS 7.0 版本信息查看#cat /etc/redhat-release2.安装Mariadb#yum -y install mariadb*3. 阅读全文
posted @ 2017-09-19 21:54 Bender9527 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 版本centOS7.3.1611(lsb_release -a) 第一步: 开启mod_rewrite模块, /etc/httpd/conf里找到httpd.conf文件 LoadModule rewrite_module modules/mod_rewrite.so 第二步: httpd.conf 阅读全文
posted @ 2017-09-07 21:53 Bender9527 阅读(127) 评论(0) 推荐(0) 编辑
摘要: header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: http://指定访问'); 红字是控制台报的错,如果加上了还报别的错,继续配置header 阅读全文
posted @ 2017-09-01 15:26 Bender9527 阅读(80) 评论(0) 推荐(0) 编辑
摘要: . cascade方式在父表上update/delete记录时,同步update/delete掉子表的匹配记录 . set null方式在父表上update/delete记录时,将子表上匹配记录的列设为null要注意子表的外键列不能为not null . No action方式如果子表中有匹配的记录 阅读全文
posted @ 2017-08-27 12:11 Bender9527 阅读(318) 评论(0) 推荐(0) 编辑
摘要: centos7 yum install php php-devel , 默认安装php5.4 1.执行下面的命令升级软件仓库 rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.w 阅读全文
posted @ 2017-07-18 15:11 Bender9527 阅读(1355) 评论(0) 推荐(1) 编辑