2017年10月12日

摘要: 一、防火墙配置:centos7.0防火墙默认使用的是firewall,需要改为iptables (1)关闭firewall:[root@localhost] systemctl stop firewall.service #停止firewall服务,服务命令用systemctl而不是centos6. 阅读全文
posted @ 2017-10-12 14:15 lianruihong 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1. 修改Yii2.0框架配置文件 'urlManager' => array( "showScriptName" => false, "enablePrettyUrl" => true, 'rules' => [ "<controller:\w+>/<action:\w+>" => '<contr 阅读全文
posted @ 2017-10-12 09:37 lianruihong 阅读(118) 评论(0) 推荐(0) 编辑

2017年10月7日

摘要: configuration error: couldn't perform authentication. AuthType not set!: / 500服务器错误 解决方案: 将“Require all granted”删除…… 出现 403 forbidden 解决方案: <Directory 阅读全文
posted @ 2017-10-07 14:08 lianruihong 阅读(160) 评论(0) 推荐(0) 编辑

2016年7月4日

摘要: 一、POP3收邮件:POP3: 110POP3 SSL: 995 二、IMAP收邮件:IMAP: 143IMAP SSL: 993 三、SMTP发邮件:SMTP: 25SMTP SSL: 465SMTP TLS: 587 阅读全文
posted @ 2016-07-04 10:28 lianruihong 阅读(2555) 评论(0) 推荐(0) 编辑

2016年5月31日

摘要: public function scriptReplace($string){ $preg = "/<script[\s\S]*?<\/script>/i"; return preg_replace($preg,"",$string,-1); } 阅读全文
posted @ 2016-05-31 18:20 lianruihong 阅读(884) 评论(0) 推荐(0) 编辑

2016年3月30日

摘要: String.prototype.trim=function() { return this.replace(/(^\s*)|(\s*$)/g,'');} 阅读全文
posted @ 2016-03-30 10:05 lianruihong 阅读(127) 评论(0) 推荐(0) 编辑

2016年3月23日

摘要: 查看日志 tail -n 500 -f log.txt 显示文件 log.txt 的后500行内容并在文件内容增加后,自动显示新增的文件内容 打开防火墙配置 执行 vi /etc/sysconfig/iptables 允计 mysql 3306 端口访问 -A RH-Firewall-1-INPUT 阅读全文
posted @ 2016-03-23 14:38 lianruihong 阅读(111) 评论(0) 推荐(0) 编辑

2016年3月22日

摘要: JQUERY 中封装的JSONP请求方法 1.index.html 中的javascript $(function(){ $.ajax({ type: "GET", async:false, url: "http://www.vm.com:81/index.php", //跨域请求的地址 data: 阅读全文
posted @ 2016-03-22 17:41 lianruihong 阅读(143) 评论(0) 推荐(0) 编辑

2016年3月8日

摘要: Alt+R : 开启正则表达式功能 Alt+Enter: 找到匹配目标后全部选择 Ctrl+R:前往 method(mac下⌘R) Ctrl+M:跳转到对应括号 按Ctrl+Shift+上下键,可替换行 Ctrl+D:选择单词,重复可增加选择下一个相同的单词 Ctrl+L:选择行,重复可依次增加选择 阅读全文
posted @ 2016-03-08 09:01 lianruihong 阅读(197) 评论(0) 推荐(0) 编辑

2016年3月7日

摘要: 1.打开powerdesign ,打开 文件->Reverse Engineer -> Database 2.选择mysql 脚本文件 3.点击确定后就可以生成PDM了。 阅读全文
posted @ 2016-03-07 17:34 lianruihong 阅读(913) 评论(0) 推荐(0) 编辑

导航