上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 63 下一页
摘要: Nginx的优点是: 1、工作在网络的7层之上,可以针对http应用做一些分流的策略,比如针对域名、目录结构,它的正则规则比HAProxy更为强大和灵活,这也是它目前广泛流行的主要原因之一,Nginx单凭这点可利用的场合就远多于LVS了。 2、Nginx对网络稳定性的依赖非常小,理论上能ping通就 阅读全文
posted @ 2017-11-06 10:38 ノGHJ 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1.到nginx源码目录新建个rtmp目录 ,进入 git clone https://github.com/arut/nginx-rtmp-module.git 2.重编译nginx 代码如下 [Shell] 纯文本查看 复制代码 ? 1 2 3 ./configure --prefix=/usr 阅读全文
posted @ 2017-11-06 10:38 ノGHJ 阅读(258) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-11-03 10:56 ノGHJ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: $(".text-center").css({'word-break':'break-all'}); 阅读全文
posted @ 2017-11-02 16:25 ノGHJ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public function actionDo(){ $id = (int)Yii::$app->request->get('id'); if(empty($id)) { $this->_error('操作失败', 'index'); } $service = new New2Service(); ... 阅读全文
posted @ 2017-11-01 17:07 ノGHJ 阅读(119) 评论(0) 推荐(0) 编辑
摘要: /** * 生成pdf * @param string $html 需要生成的内容 */ function pdf($html='hello word'){ vendor('Tcpdf.tcpdf'); $pdf = new \Tcpdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8'... 阅读全文
posted @ 2017-10-30 14:52 ノGHJ 阅读(222) 评论(0) 推荐(0) 编辑
摘要: /** * 获取当前访问的设备类型 * @return integer 1:其他 2:iOS 3:Android */ function get_device_type(){ //全部变成小写字母 $agent = strtolower($_SERVER['HTTP_USER_AGENT']); $type = 1; //分别进行判断 if(st... 阅读全文
posted @ 2017-10-30 14:51 ノGHJ 阅读(470) 评论(0) 推荐(0) 编辑
摘要: /** * 检测是否是手机访问 */ function is_mobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(.*?\)|',$useragent,$matche... 阅读全文
posted @ 2017-10-30 14:49 ノGHJ 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 对于建站的筒子们来说;垃圾广告真是让人深恶痛绝;为了清净;搞个难以识别的验证码吧;又被用户各种吐槽;直到后来出现了极验这个滑动的验证码;这真是一个体验好安全高的方案;官网:http://www.geetest.com/ (此处应该有广告费)示例项目:https://github.com/baijun 阅读全文
posted @ 2017-10-30 14:43 ノGHJ 阅读(1782) 评论(0) 推荐(1) 编辑
摘要: wget --no-check-certificate https://raw.githubusercontent.co ... ter/shadowsocksR.sh sh ./shadowsocksR.sh 根据提示一步步安装就可以了. 阅读全文
posted @ 2017-10-30 11:10 ノGHJ 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 63 下一页