上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
  2021年8月8日
摘要: 修改文件/etc/nginx/conf.d/z.conf,复制文件内容,并复制在最后 修改server_name,root对应内容 server { listen 80; server_name z.jdlhm.com; # 修改 #charset koi8-r; #access_log /var/ 阅读全文
posted @ 2021-08-08 00:57 讲道理好嘛 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/getyouwant/article/details/78070977 1. 不是权限问题 2. 不是.htaccess文件的问题 3. 不是wordpress安全插件的问题 问题出在修改文件/etc/nginx/conf.d/default.c 阅读全文
posted @ 2021-08-08 00:56 讲道理好嘛 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1. wp简体中文版: https://cn.wordpress.org/switching/ 2. 下载后解压并放到服务器上 Apache ​ Nginx 3. 重命名 wp-config-sample.php 文件为 wp-config.php,修改配置 // ** MySQL 设置 - 具体信 阅读全文
posted @ 2021-08-08 00:54 讲道理好嘛 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 报错:[Err] [Dtf] 1067 - Invalid default value for 'comment_date' 原因:mysql新版本默认值不兼容 解决方法:修改mysql配置文件,vim /etc/my.cnf,添加语句 sql_mode=ONLY_FULL_GROUP_BY,STR 阅读全文
posted @ 2021-08-08 00:53 讲道理好嘛 阅读(253) 评论(0) 推荐(0) 编辑
摘要: (venv) D:\pytest>pip install beautifulsoup Collecting beautifulsoup Using cached https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d 阅读全文
posted @ 2021-08-08 00:52 讲道理好嘛 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 要用移动版的,web版本需要更多参数请求 # coding: utf-8 import requests def Ipdizhi(ip): try: url = "http://m.ip138.com/ip.asp" kv = {"ip": ip} r = requests.get(url, par 阅读全文
posted @ 2021-08-08 00:51 讲道理好嘛 阅读(89) 评论(0) 推荐(0) 编辑
摘要: .strip() 用于移除字符串头尾指定的字符(默认为空格或换行符)或字符序列。 返回移除字符串头尾指定的字符生成的新字符串。 while True: print(input().strip("吗?") + "喵!") 运行结果: D:\pytest\venv\Scripts\python.exe 阅读全文
posted @ 2021-08-08 00:50 讲道理好嘛 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 获取用户输入的文件名 # coding:utf-8 import requests import os path = "D:\\pic\\{}.jpg".format(input("请输入文件名:")) url = "http://img.mp.itc.cn/upload/20160902/7cf5 阅读全文
posted @ 2021-08-08 00:49 讲道理好嘛 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 某些网站会判断请求来源(人为操作或者工具脚本),如亚马逊,若直接发送请求,会报错,所以需在headers中加入浏览器类型 # coding:utf-8 import requests def jdlhm(url): try: kv = {'user-agent': 'Mozilla/5.0'} r 阅读全文
posted @ 2021-08-08 00:48 讲道理好嘛 阅读(67) 评论(0) 推荐(0) 编辑
摘要: bobots.txt 文件位置: 网站根目录:/var/www/html/robots.txt 文件内容: User-agent: * Disallow: /?* Disallow: /pop/*.html Disallow: /pinpai/*.html?* User-agent: EtaoSpi 阅读全文
posted @ 2021-08-08 00:46 讲道理好嘛 阅读(285) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页