上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: 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 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(938) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wangxingjie852/article/details/108411119 最近在学docker环境中mysql的主从复制,但是进入docker的bash界面后发现无法编辑配置文件,没有vim没有vi。除了安装vim以外还可以把宿主机的文件挂载到镜像 阅读全文
posted @ 2021-08-31 18:06 睁yan-ii 阅读(907) 评论(0) 推荐(0) 编辑
摘要: >>> 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 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1986) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 19 下一页