自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 安装Xunsearch

安装Xunsearch 安装组件 yum install gcc-c++ yum install zlib-devel 安装Xunsearch wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2 tar -xjf xunsearch-full-latest.tar.bz2 cd xunsearch* sh setup.sh 参考: 参考内容(1)

2020-12-23 20:32:29 306

原创 nginx.conf 个人总结笔记

nginx日志格式与启用 # http 添加代码 # log_format main '$remote_addr [$time_local] $http_host $status "$request" $body_bytes_sent $http_referer $http_user_agent'; # service 添加代码 # access_log /home/w...

2020-01-08 23:29:56 165

原创 shell定时切割日志文件

cut.sh YESTERDAY=$(date -d "yesterday" +%Y%m%d) mv /home/wwwlogs/access.log /home/wwwlogs/Access.${YESTERDAY}.log kill -USR1 $(cat /usr/local/nginx/logs/nginx.pid) cd /home/wwwlogs/ zip -q Access.${Y...

2020-01-08 23:18:15 477

原创 python查询各搜索引擎收录情况

# -*- coding: utf-8 -*- import requests_html import json import time # 格式化数值函数 def num(num): nums = 0 num = num.replace('找到相关结果约','').replace('个','') num = num.replace('找到约','').replace('...

2020-01-08 23:06:42 677

原创 python分析web日志文件

# -*- coding: utf-8 -*- import time import os import json def remove_logs(cachedir): for root, dirs, files in os.walk(cachedir, topdown=False): for name in files: os.remove(os.path.join(root, n...

2020-01-08 23:06:36 209

原创 python查询帝国cms文章总量

# -*- coding: utf-8 -*- import pymysql import time import json def runtotal(dbhost,username,password,dbname,tbpre=''): print('[running]','链接数据库',dbname) class_tbnamer = [] conn = pymysql.connect(...

2020-01-08 23:05:54 161

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除