摘要:
更新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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
yum install httpd httpd-devel yum install mysql mysql-server yum install php php-devel 重启apache 配置apache和mysql开机自启 chkconfig --level 2345 apache on ch 阅读全文
摘要:
用了前五步解决问题 http://blog.csdn.net/m_m254282520/article/details/53126807 1. CentOS 7.0 版本信息查看#cat /etc/redhat-release2.安装Mariadb#yum -y install mariadb*3. 阅读全文
摘要:
版本centOS7.3.1611(lsb_release -a) 第一步: 开启mod_rewrite模块, /etc/httpd/conf里找到httpd.conf文件 LoadModule rewrite_module modules/mod_rewrite.so 第二步: httpd.conf 阅读全文
摘要:
header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: http://指定访问'); 红字是控制台报的错,如果加上了还报别的错,继续配置header 阅读全文
摘要:
. cascade方式在父表上update/delete记录时,同步update/delete掉子表的匹配记录 . set null方式在父表上update/delete记录时,将子表上匹配记录的列设为null要注意子表的外键列不能为not null . No action方式如果子表中有匹配的记录 阅读全文
摘要:
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 阅读全文