会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Bender9527
博客园
首页
新随笔
联系
订阅
管理
2018年7月19日
centos更新yum源+安装flash
摘要: 更新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
阅读(1405)
评论(0)
推荐(0)
2018年5月21日
How to hide index.php on nginx
摘要: 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
阅读(162)
评论(0)
推荐(0)
2018年2月8日
判断是否手机端访问
摘要: php: js:
阅读全文
posted @ 2018-02-08 13:43 Bender9527
阅读(1088)
评论(0)
推荐(0)
2018年2月7日
mysql事件
摘要: 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
阅读(105)
评论(0)
推荐(0)
2017年10月29日
重装centos系统(6.8 64位)+配置环境
摘要: 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
阅读(621)
评论(0)
推荐(0)
2017年9月19日
数据库缺少mysql.sock文件的解决办法
摘要: 用了前五步解决问题 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
阅读(926)
评论(0)
推荐(0)
2017年9月7日
域名绑定
摘要: 版本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
阅读(130)
评论(0)
推荐(0)
2017年9月1日
ajax跨域
摘要: header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: http://指定访问'); 红字是控制台报的错,如果加上了还报别的错,继续配置header
阅读全文
posted @ 2017-09-01 15:26 Bender9527
阅读(89)
评论(0)
推荐(0)
2017年8月27日
mysql设置外键
摘要: . cascade方式在父表上update/delete记录时,同步update/delete掉子表的匹配记录 . set null方式在父表上update/delete记录时,将子表上匹配记录的列设为null要注意子表的外键列不能为not null . No action方式如果子表中有匹配的记录
阅读全文
posted @ 2017-08-27 12:11 Bender9527
阅读(326)
评论(0)
推荐(0)
2017年7月18日
Linux升级PHP版本
摘要: 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
阅读(1369)
评论(0)
推荐(1)
公告