自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 flask 蓝图使用教程

lantu.pyfrom flask import Blueprintroute_lantu = Blueprint( "lantu_page",__name__)@route_lantu.route("/index",methods=['GET' , 'POST'])def index(): return "hello"@route_lantu.route("/hello",methods=['GET' , 'POST'])def hello(): return "hel

2021-12-14 13:13:42 734

原创 flask获取页面表单提交的POST数据

前端代码<form method="post"> <label>用户名</label><input type="text" name="username"><br> <label>密码</label><input type="password" name="password"><br> <label>确认密码</label><in.

2021-12-08 13:53:00 2220

原创 mac python虚拟环境搭建教程

搭建环境mac下配置python虚拟环境安装python虚拟环境核心目的就是为了复制一个python环境,这样新项目下载的所有包,都会存放在虚拟环境下的python site-package 中首先安装sudo pip install virtualenv # 安装虚拟环境sudo pip install virtualenvwrapper # 安装虚拟环境扩展包vim .bash_profile # 家目录下编辑.bash_profile文件,加入以下3句expo

2021-11-29 13:50:49 2079

原创 sqlmap使用教程

#sqlmap使用教程#检查一个URL是否可注入sqlmap -u "url" #检查是否可注入sqlmap -u "url" --batch #加上“--batch”将会自动操作sqlmap -u "url" --batch --dbs #获取数据库名称sqlmap -u "url" --current-db #获取当前URL所用的是那一个库sqlmap -u "url" --batch -D testdb --tables #--tables猜testdb的表名 -D是指定库的名称sq

2021-11-09 14:48:44 2783

转载 centos7下安装python3.8

记录把centos7服务器,自带的是python2.7,所以想升级到python3,以下即是详细升级步骤原著:https://www.jianshu.com/p/15f40edefb13查看当前python版本[root@iZwz99sau950q2nhb3pn0aZ ~]# pythonPython 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2Type "he

2021-06-22 10:50:21 81

原创 Linux 安装locust

安装:https://blog.csdn.net/fnms88/article/details/85842757以下版本必须一致不然会报错locustio0.13.5greenlet0.14.6

2021-06-18 17:10:28 527

原创 docker常用命令

#启动systemctl start docker #启动dockersystemctl enable docker #开机启动dockersystemctl status docker #查看docker状态docker images #查看有哪些镜像#创建容器docker run -p 8000:80 --name mynginx -d nginx #-p指定服务器8000端口,映射容器80 web端口,容器名为mynginx -d 守护进程模式启动(因为容器必须有进程在运行,否则

2021-05-25 14:29:08 103 1

原创 Linux crontab 定时任务执行python脚本

定时任务crontab编辑配置文件vim /etc/crontab SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin */1 * * * * root /usr/bin/python /root/run.py#用root用户执行run,py这个脚本,必须要把python路径带上重启crontabsudo service cron restart...

2021-05-25 14:12:21 199

原创 2021-05-21

docker常用命令创建容器docker run -d -p 0.0.0.0:18080:8080 --name 容器名称 镜像名称或IDdocker start nginx1 #启动docker stop NAMES # 停止docker restart NAMES # 重启进入容器docker exec -it 名称或ID /bin/bashdocker 启动所有的容器docker start $(docker ps -a | awk '{ print $1}' |

2021-05-21 10:57:10 54

原创 git初始配置

Git 全局设置git config --global user.name “Administrator”git config --global user.email “admin@example.com”创建一个新仓库git clone http://192.168.50.114:8001/root/api_automation.gitcd api_automationtouch README.mdgit add README.mdgit commit -m “add README”gi

2021-04-19 16:12:17 147

原创 Ansible配置与简单使用

https://www.cnblogs.com/keerya/p/7987886.html

2021-03-22 14:59:13 54

原创 nginx负载均衡配置

user nginx;worker_processes 4; #四核cpuworker_cpu_affinity 0001 0010 0100 1000;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;worker_rlimit_nofile 65535; #优化内核后配置的连接数。默认是1024events { use epoll; worker_connections

2021-03-18 14:34:08 106

转载 nginx负载均衡反向代理MySQL配置

user nginx;worker_processes 1;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;events { worker_connections 1024;}http { include /etc/nginx/mime.types; default_type application/octet-stream; log_fo

2021-03-18 14:22:35 341

原创 centos7安装docker

转:https://www.cnblogs.com/shangping/p/11212562.html

2021-03-17 16:53:20 52

转载 Elasticsearch-head安装教程

转https://www.cnblogs.com/keystone/p/13266528.html

2021-03-17 14:46:41 77

原创 filebeat-7.11.1安装简单操作写入Elasticsearch

#filebeat-7.11.1安装简单操作Elasticsearch环境:centos7filebeat-7.11.1下载地址:https://www.elastic.co/downloads/beats/filebeat选择对应的系统解压filebeat-7.11.1-linux-x86_64.tar.gz命令:tar -xzvf filebeat-7.11.1-linux-x86_64.tar.gz编辑:vi filebeat-7.11.1-linux-x86_64/filebeat.y

2021-03-17 14:39:14 391

空空如也

空空如也

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

TA关注的人

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