分类 其他技术 下的文章
js数组去重的一种方法
var arr = ['apple','banana','pear','apple','orange','orange'];
console.log(arr) //["apple", "banana", "pear", "apple", "orange", "orange"]
var newArr = arr.filter(function(value,index,self){
...
2022-08-08
ORA-03217: invalid option for alter of TEMPORARY TABLESPACE
扩展临时表空间,不能用datafile,只能用tempfile错误语句:ALTER TABLESPACE backup_temp ADD datafile '/data/oradata/backup/backup_temp02.dbf' size 150m autoextend on next 50m MAXSIZE unlimited;正确语句:ALTER TABLESPACE backu...
2022-08-02
systemctl enable rc-local.service报错:The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This
报错内容:The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to ...
2022-07-28
nginx限制访问流量,不是黑名单机制
原网页地址:How To Limit Rate of Connections (Requests) in NGINX (tecmint.com)The following configuration example shows limiting the rate of request to a web application API. The shared memory size is 20...
2022-07-23
上次发了一个豆丁和原创力的,再来一个下载道客巴巴的项目地址
项目地址:https://github.com/rty813/doc_downloader项目介绍支持:下载豆丁、淘豆、道客巴巴、原创力、金锄头文档,并自动转换为PDF其自带打包的exe比上次那个,需要自己配置python要简单一些,下载 Releases 中的文件,解压即可使用。但是,当你下载的时候,肯定会chromedriver版本过低。这时候,只需要下载一个新版的覆盖即可。https:...
2022-07-09
RuoYi-Vue-Plus,使用代码生成器,生成代码后添加新模块,访问提示404
项目地址:https://gitee.com/JavaLionLi/RuoYi-Vue-Plus按照流程,用代码生成器生成模块,放到对应模块中,启动项目,一气呵成。一访问菜单,404。懵逼了,为啥呀。能启动,还能出现404。百度了一圈,没有得到答案。百度的结果包括:https://blog.csdn.net/god_sword_/article/details/122390623?spm=1...
2022-07-08
windows server上安装DBeaver,下载驱动报错:unable to find valid certification path to requested target
本机win10,win11安装下载驱动均没有报错。但是在,windows server操作系统下,安装完成后,报错:百度了一下,说是JDK安装的时候,少了东西,又把本机的JDK拷贝上去,重新安装以后,问题依旧。于是,只有再谷歌一下了,找到这么一篇文章:mysql - Can you help me to fix the connection with my DBeaver? - Stack ...
2022-06-24
需要下载一个book118的文档,找了个工具,需要一点动手能力才行
首先安装python,在win11的命令提示符下,输入python回车,会弹出微软的商店。就在商店里面安装吧。如果自己下载安装的,需要去配置Path什么的,麻烦。然后,找到工具的github地址:GitHub - kerms5/book118: 使用playwright强力驱动的原创力文档book118和豆丁网docin下载工具下载源码吧。按照github上的提示进行安装:pip insta...
2022-06-23
MySQL 8初始化账户,或者修改初始密码
MySQL初始化账户,或者修改root密码的命令:ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; #更新一下用户的密...
2022-06-21
windows server安装mysql8,报错:Failed to find valid data directory
之前记录过一次从MySQL 5 升级到 MySQL 8 的过程:https://www.144d.com/post-664.html文章中,记录执行命令:mysqld –initialize在新安装的情况下,会报错:Failed to find valid data directory也可能是新安装的是8.0.29,之前是8.0.19的问题,当然,也可能问题一直就存在。使用上面的命令时,需要...
2022-06-21
windows下Redis6.*的下载地址
https://github.com/X-Lucifer/winredishttps://www.renren.io/detail/14294以上两个地址是6.x的,下面地址是5.x的。https://github.com/tporadowski/redis
2022-05-14
从gogs0.12.*转换到gitea的过程
从gitea官方看到,可以支持从gogs无缝升级到gitea,于是进行了尝试。按照官方文档:https://docs.gitea.io/zh-cn/upgrade-from-gogs/进行升级,提示gitea版本过高,已不支持gogs升级,查看log文件,提示需要1.6.4或者之前的gitea,于是下载尝试。升级过程中,提示缺少表。于是放弃。看到如下文章后,再次尝试。http://t.zou...
2022-05-06