一.安装MongoDB (1)redhat或centos6.2以上系统 (2)系统开发包完整 (3)ip地址和hosts文件解析正常 (4)iptables防火墙&SElinux关闭 (5)关闭大页内存机制 ############################################## ...
分类:
数据库 时间:
2021-01-13 11:29:01
阅读次数:
0
开启慢查询Profiling Profiling级别说明 0:关闭,不收集任何数据。 1:收集慢查询数据,默认是100毫秒。 2:收集所有数据 1、通过修改配置文件开启Profiling 修改启动mongo.conf,插入以下代码 #开启慢查询,200毫秒的记录 profile = 1 slowms ...
分类:
数据库 时间:
2021-01-13 11:20:42
阅读次数:
0
Ubuntu 18.04 (Bionic) 安装 MongoDB (Install MongoDB Community Edition on Ubuntu) 查看 Ubuntu 版本 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu ...
分类:
数据库 时间:
2021-01-12 11:08:09
阅读次数:
0
thymeleaf修改javascript中的值, 下面示例为修改Fields的值 前端使用layui配置表格字段, 字段不固定, 由后端决定. <script th:inline="javascript"> var fields = eval([[${Fields}]]); </script> < ...
分类:
Web程序 时间:
2021-01-11 11:12:50
阅读次数:
0
实战2:使用selenium爬取淘宝数据,保存在mongodb 配置文件 MONGO_URL = 'localhost' MONGO_DB = 'taobao' MONGO_TABLE = 'yintiao' 爬虫文件 from selenium import webdriver from sele ...
分类:
数据库 时间:
2021-01-11 10:47:01
阅读次数:
0
# 练习题3 # 编写函数, 实现计算器中加减乘除功能 # 例如:输入: 2+33 def computer(a, b, c): if b == "+": print(int(a) + int(c)) elif b == "-": print(int(a) - int(c)) elif b == " ...
分类:
其他好文 时间:
2021-01-11 10:39:55
阅读次数:
0
练习:判断是否为闰年 year=eval(input("请输入年份:"))pd=Trueif year%400==0: pd=Trueelif year%4==0 and year%100!=0: pd = Trueelse: pd=Falseif pd==True: print(str(year) ...
分类:
其他好文 时间:
2021-01-11 10:32:50
阅读次数:
0
vim mongodb.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongodb labels: app: mongodb spec: replicas: 1 selector: matchLabels: app: mongo ...
分类:
数据库 时间:
2021-01-07 11:58:16
阅读次数:
0
一、代码执行(相关函数) 大致分为五类: 1、eval + assert函数 2、pre 3、用户自定义函数 4、动态函数 5、其他 二、eval eval(PHP 4 , PHP 5 , PHP 7) - 把字符串作为PHP代码执行,当用户可以控制字符串那么此时就存在代码注入漏洞 eval ( s ...
分类:
其他好文 时间:
2021-01-06 12:14:00
阅读次数:
0
命令执行&&代码执行 wafpass总结 代码执行 php常见命令执行函数 php代码 eval() assert() preg_replace call_user_func() call_user_func_array() create_function array_map() 系统命令代码 sy ...
分类:
Web程序 时间:
2021-01-06 11:40:50
阅读次数:
0