会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
睁yan-ii
python
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
19
下一页
2022年1月10日
redis 迁移脚本
摘要: src_ip=127.0.0.1 #redis 源port src_port=36379 #redis 源库 src_db=0 #redis 目的ip dest_ip=172.17.16.207 #redis 目的port dest_port=6379 #redis 目的 dest_db=0 #re
阅读全文
posted @ 2022-01-10 16:31 睁yan-ii
阅读(166)
评论(0)
推荐(0)
2021年12月27日
linux crontab 定时任务使用
摘要: 1 centos 安装 yum install crontabs 2 编辑配置 crontab -e 实例 1 0 * * * /opt/backup/back_mysql.sh >> /opt/backup/backup.log #(每天的0点01分执行 */20 * * * * /usr/bin
阅读全文
posted @ 2021-12-27 15:15 睁yan-ii
阅读(82)
评论(0)
推荐(0)
2021年12月16日
cnvd 获取最新cookie (反爬)
摘要: import time,sys from selenium import webdriver from selenium.webdriver.chrome.options import Options def get_cookie(): options = webdriver.ChromeOptio
阅读全文
posted @ 2021-12-16 17:52 睁yan-ii
阅读(169)
评论(0)
推荐(0)
python selenium 获取UA
摘要: import time,sys from selenium import webdriver from selenium.webdriver.chrome.options import Options def get_cookie(): options = webdriver.ChromeOptio
阅读全文
posted @ 2021-12-16 17:48 睁yan-ii
阅读(446)
评论(0)
推荐(0)
2021年12月14日
Centos7安 装python3+Selenium+chrome+chromedriver
摘要: 1. 查看当前python版本 root@iZwz99sau950q2nhb3pn0aZ ~]# python Python 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
阅读全文
posted @ 2021-12-14 17:52 睁yan-ii
阅读(59)
评论(0)
推荐(0)
2021年10月29日
linux查看端口占用情况
摘要: Linux如何查看端口 1、lsof -i:端口号 用于查看某一端口的占用情况,比如查看8000端口使用情况,lsof -i:8000 # lsof -i:8000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME lwfs 22065 root
阅读全文
posted @ 2021-10-29 11:01 睁yan-ii
阅读(833)
评论(0)
推荐(0)
2021年10月27日
flask 使用 gevent-websocket + gunicorn 部署 (python 实时日志开发+部署)
摘要: 1 我的falsk websocket 环境 pip install -r ******.txt eventlet==0.24.1 flake8==3.8.4 Flask==0.11.1 Flask-Cors==3.0.10 Flask-Script==2.0.5 Flask-SocketIO==2
阅读全文
posted @ 2021-10-27 16:04 睁yan-ii
阅读(1138)
评论(0)
推荐(0)
2021年8月31日
docker容器内apt换源
摘要: https://blog.csdn.net/wangxingjie852/article/details/108411119 最近在学docker环境中mysql的主从复制,但是进入docker的bash界面后发现无法编辑配置文件,没有vim没有vi。除了安装vim以外还可以把宿主机的文件挂载到镜像
阅读全文
posted @ 2021-08-31 18:06 睁yan-ii
阅读(947)
评论(0)
推荐(0)
2021年8月25日
python 获取当前时间 和 前天 or 后天的方法
摘要: >>> import datetime >>> today=datetime.date.today() >>> print today 2018-01-17 >>> formatted_today=today.strftime('%y%m%d') >>> print formatted_today
阅读全文
posted @ 2021-08-25 17:58 睁yan-ii
阅读(105)
评论(0)
推荐(0)
python 获取星期几
摘要: python 获取星期几 from datetime import datetime dayOfWeek = datetime.now().isoweekday() ###返回数字1-7代表周一到周日 day_Week = datetime.now().weekday() ###返回从0开始的数字,
阅读全文
posted @ 2021-08-25 17:56 睁yan-ii
阅读(2048)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
19
下一页
公告