源地址:(https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns)USERNAME [a-zA-Z0-9._-]+ USER %{USERNAME} EMAILLOCA ...
分类:
其他好文 时间:
2020-07-10 14:57:23
阅读次数:
118
【注:本文转自 https://blog.csdn.net/u012410733/article/details/63684663】 【注意】:Oracle数据库支持full join,mysql是不支持full join的,但仍然可以同过左外连接+ union+右外连接实现 初始化SQL语句: / ...
分类:
数据库 时间:
2020-07-10 13:33:02
阅读次数:
85
pymysql.Connect()参数说明 host(str): MySQL服务器地址 port(int): MySQL服务器端口号 user(str): 用户名 passwd(str): 密码 db(str): 数据库名称 charset(str): 连接编码 connection对象支持的方法 ...
分类:
数据库 时间:
2020-07-10 13:30:04
阅读次数:
87
误删下所有的用户 # 删除一个用户(::1 是本机 ipv6 地址) mysql> drop user root@'::1'; Query OK, 0 rows affected (0.00 sec) # 删除所有用户 mysql> delete from mysql.user where 1=1; ...
分类:
数据库 时间:
2020-07-10 13:25:46
阅读次数:
69
top命令 top命令 [root@fpm_nginx /app]# top top - 12:19:58 up 3:45, 1 user, load average: 0.00, 0.02, 0.05 Tasks: 91 total, 1 running, 90 sleeping, 0 stopp ...
分类:
其他好文 时间:
2020-07-10 13:15:41
阅读次数:
116
#典型的企业级网站 ##一、头部制作 分为四部分:logo区域 nav导航栏 search搜索框 user个人信息 ####1、nav导航栏制作 注意结构: <div class="nav"> <ul> <li><a href="">首页</a></li> </ul> </div> ####2、us ...
分类:
其他好文 时间:
2020-07-10 13:08:44
阅读次数:
78
viwes>>>ip_list=['192.168.1.X']def index(request): """ request.META是一个字典 """ # 获得客户端IP user_ip = request.META['REMOTE_ADDR'] if user_ip in lp_list: re ...
分类:
其他好文 时间:
2020-07-10 12:58:22
阅读次数:
63
mybatis-plus update 版本:3.0+ 根据id更新 User user = new User(); user.setUserId(1); user.setAge(29); user.updateById(); or Integer rows = userMapper.updateB ...
分类:
其他好文 时间:
2020-07-10 11:39:57
阅读次数:
559
1.创建一个数据库 2.使用 sequelize cli 初始化 项目的数据库配置信息 'npx sequelize init' 3.生成模型文件 1.migrate文件 2.model文件 'npx sequelize model:generate --name user --attributes ...
分类:
数据库 时间:
2020-07-10 11:38:06
阅读次数:
192
1.利用了正则表达式和三目运算符,含义就是如果是移动端打开的话那就跳转到 "https:www.baidu.com/" ,如果不是就跳转到"http://new.baidu.com/" window.location.href = /Android|webOS|iPhone|iPod|BlackBe ...
分类:
移动开发 时间:
2020-07-10 11:37:54
阅读次数:
96