10 2016 档案

摘要:function get_content($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $header = array(); $header[] = 'Host: t.xx.com'; $header[] = 'Accept-Encodi... 阅读全文
posted @ 2016-10-31 15:16 扶摇上青天 阅读(3383) 评论(0) 推荐(0)
摘要:下载mysql:http://down1.chinaunix.net/distfiles/mysql-5.5.21.tar.gz 下载cmake:https://cmake.org/files/v3.7/cmake-3.7.0-rc2.tar.gz 1.先安装cmake编辑工具:#./configu 阅读全文
posted @ 2016-10-24 17:03 扶摇上青天 阅读(158) 评论(0) 推荐(0)
摘要:远程SSH登录上CentOS服务器后,进行如下操作 提醒:挂载操作会清空数据,请确认挂载盘无数据或者未使用 第一步:列出所有磁盘 命令: ll /dev/disk/by-path 或 fdisk -l 提示:如果无法确认数据盘设备名称,请使用df命令来确认系统盘的名称,从而排除挂错盘的情况。 第二步 阅读全文
posted @ 2016-10-19 15:05 扶摇上青天 阅读(173) 评论(0) 推荐(0)
摘要:若报:504 Gateway Time-out则与nginx有关 解决方案: #vim nginx.conf 添加以下代码: http{ fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; 阅读全文
posted @ 2016-10-18 10:26 扶摇上青天 阅读(218) 评论(0) 推荐(0)
摘要:报Warning: file_get_contents(http://www.dianping.com/shop/8042874) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 4 阅读全文
posted @ 2016-10-09 17:40 扶摇上青天 阅读(6015) 评论(0) 推荐(1)
摘要:vi /etc/sysctl.conf如果希望屏蔽别人 ping 你的主机,则加入以下代码:# Disable ping requestsnet.ipv4.icmp_echo_ignore_all = 1编辑完成后,请执行以下命令使变动立即生效:/sbin/sysctl -p/sbin/sysctl 阅读全文
posted @ 2016-10-09 16:10 扶摇上青天 阅读(687) 评论(0) 推荐(0)
摘要:了解phpQuery使用前了温习jquery.js的选择用法 jquery选择器,还有一个衍生产品QueryList 例: 例获取某品牌的logo 阅读全文
posted @ 2016-10-08 14:59 扶摇上青天 阅读(555) 评论(0) 推荐(0)