打印文件路径: import os print(__file__)#获取当前程序路径,注意:这里打印出来的路径为相对路径 #动态获取绝对路径 print(os.path.abspath(__file__)) #这才是当前程序绝对路径 print(os.path.dirname(os.path.abs ...
分类:
编程语言 时间:
2020-05-08 11:27:15
阅读次数:
94
YII2进行MYSQL数据库操作时出现Database Exception – yii\db\Exception SQLSTATE[HY000] [2002] No such file or directory错误的解决方法 在进行数据库操作时出现如下类似错误,实际则是PHP配置文件php.ini中 ...
分类:
数据库 时间:
2020-05-08 11:26:43
阅读次数:
97
处理方法: 在 /etc/sysctl.conf文件中加入下面的配置: fs.inotify.max_user_watches=1048576fs.inotify.max_user_instances=1048576 sysctl -p /etc/sysctl.conf 使修改生效。再次执行 tai ...
分类:
其他好文 时间:
2020-05-08 09:48:45
阅读次数:
60
yum安装mysql方法一:下载二进制格式的mysql安装[root@localhost~]#cd/usr/src/[root@localhostsrc]#wgethttps://downloads.mysql.com/archives/get/file/mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz效果--2018-08-1323:56:27--https:
分类:
数据库 时间:
2020-05-08 09:39:33
阅读次数:
134
打开idea,找到菜单栏的file,点击打开,找到settings,打开 用key做关键词搜索keymap 找到之后点击打开,右侧就会显示快捷键界面,可以点击查看每一项 4 默认为default,如果常用的是eclipse的话,可以下拉选择eclipse的快捷键 点击apply应用 ...
分类:
其他好文 时间:
2020-05-08 09:16:34
阅读次数:
68
自定义图片宽高比例限制 checkImageWH(file) { let self = this; return new Promise(function (resolve, reject) { let filereader = new FileReader(); filereader.onload ...
分类:
其他好文 时间:
2020-05-07 22:45:08
阅读次数:
435
! Configuration File for keepalived ##############keepalived##################### global_defs { notification_email { root@localhost.localdomain } noti ...
分类:
其他好文 时间:
2020-05-07 20:04:14
阅读次数:
57
1.idea类注释 打开:file->setting->Editor->Filr and Code Templates->Includes->File Header 类注释模板: /***@Program: ${PROJECT_NAME}*@ClassName: ${NAME}*@Author: s ...
分类:
其他好文 时间:
2020-05-07 19:53:58
阅读次数:
220
为了更加便捷方便的管理RabbitMQ进程,了解Supervisor的安装及使用,是必不可少的有效方法。 什么是supervisor supervisor是用python写的一个进程管理工具,用来启动,重启,关闭进程。 安装Supervisor 安装完成,简单了解一下supervisord 和 su ...
分类:
其他好文 时间:
2020-05-07 19:50:16
阅读次数:
95
仅供个人娱乐 靶机信息 下载地址:http://www.five86.com/downloads/DC-9.zip 一、主机扫描 二、信息收集 三、漏洞查找和利用 发现search的地方可能有sql注入 1' union select 1,2,3,4,5,6# -1' union select 1, ...
分类:
其他好文 时间:
2020-05-07 19:47:49
阅读次数:
111