摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, m 阅读全文
posted @ 2019-02-13 12:57 isafer_wilson 阅读(166) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/chiangchou/p/fastdfs.html#_label1_1 在安装完fastdfs文件系统之后, 1. 切换到fastdfs的源码解压目录:/run/fast/fastdfs-5.05/php_client1) 先初始化: /usr/bin 阅读全文
posted @ 2019-01-21 17:43 isafer_wilson 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashwhile [ "1" ]doeth=$1RXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $2}')TXpre=$(cat /proc/net/dev | grep $eth | tr : " " | 阅读全文
posted @ 2019-01-15 16:34 isafer_wilson 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1. 直接修改远程长裤地址 git remote set-url origin url 2.先删后加 git remote rm origin git remote add origin url 3. 修改 .git config 下面的 [remote "origin"] 地址 阅读全文
posted @ 2019-01-01 18:21 isafer_wilson 阅读(3299) 评论(0) 推荐(0) 编辑
摘要: 需要一个安装包--百度网盘下载lnmp包链接:https://pan.baidu.com/s/13m9lKuBaf1conM30CnvYOA 密码:12rn1.准备工作恢复快照,初始化安装;设置永久IP;关闭防火墙。安装包lnmp1.2-full.tar.gz 上传至服务器。服务器需要3GB以上硬盘 阅读全文
posted @ 2018-12-29 15:48 isafer_wilson 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1.找到自己的Nginx配置文件 (我的在/usr/local/nginx/conf/nginx.conf) 2. 重启lnmp (我的命令 lnmp restart) 注意: ① 如果重启报错,那么就是配置文件没有写对, 特别注意的地方就是 upstream load.com这个模块 一定要写在 阅读全文
posted @ 2018-12-29 15:38 isafer_wilson 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 方法总比困难多,遇到问题,要找到问题的根源,不断地调试,不要放弃,一定会与解决的方法,程序是人写的,问题不可能没有办法解决,冷静的去分析,问题一定会解开的,加油! # -*- coding: utf-8 -*- import scrapy import re class AppannieSpider(scrapy.Spider): name = 'appannie' # ... 阅读全文
posted @ 2018-12-27 14:29 isafer_wilson 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个项目 scrapy startproject “项目名称” 2.进入项目 创建一个爬虫 scrapy genspider test "test.com" 3.运行爬虫 scrapy crawl test 阅读全文
posted @ 2018-12-27 10:13 isafer_wilson 阅读(225) 评论(0) 推荐(0) 编辑
摘要: # coding: utf-8import requestsimport refrom bs4 import BeautifulSoupurl = 'https://www.appannie.com/account/login/?_ref=header'session = requests.Sess 阅读全文
posted @ 2018-12-26 19:58 isafer_wilson 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: select FROM_UNIXTIME(addtime,'%Y-%m-%d')as date,COUNT(*) FROM ad_mac GROUP BY FROM_UNIXTIME(addtime,'%Y-%m-%d'); 阅读全文
posted @ 2018-12-24 17:06 isafer_wilson 阅读(981) 评论(0) 推荐(0) 编辑