当前位置:网站首页>Web知识补充
Web知识补充
2022-07-04 12:42:00 【华为云】
Get新知识:
windows 宿主机 映射文件夹到VMware Linux 虚拟机
首先要在虚拟机关机情况下,编辑虚拟机设置,选项配置下,启用共享文件夹,选择主机文件夹路径,确定。
进入虚拟机,使用
// yum -y install open-vm-tools-desktop open-vm-tools
mkdir /app ;vmhgfs-fuse .host:/ /app
命令 将共享文件夹下的内容挂载到虚拟机路径下,其中/app 是虚拟机下自定义的文件夹路径,执行成功后在虚拟机对应文件夹下就存在共享文件夹下的内容。
使用selenium 避免被网站识别出是自动测试工具驱动的方法
- 设置window.navigator.webdriver
通过如下代码来实现
driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": """ Object.defineProperty(navigator, 'webdriver', { get: () => undefined }) """})
- 修改chromedriver.exe
在Windows下,使用notepad++ 打开可能会存在乱码,无法进行接下去的替换字符串的操作,建议在Linux 下进行操作,尽管在Linux下操作也会有乱码的出现,但我们需要替换的字符串在Linux下打开是正常的,使用vim 编辑chromedriver.exe, 使用vim 替换命令
:%s/cdc_/dog_/g
然后 :wq 保存退出即可,完成修改。
Windows 下使用最长长度的路径
默认情况下Windows能使用260位长度的路径长度,但其实Windows最大支持高达几万位长度的路径,需要前面加上 \?\ 就是告诉系统要使用最大长度的路径定义。
特殊的对于共享文价夹,使用 \?\UNC\ 即可。
边栏推荐
- 光环效应——谁说头上有光的就算英雄
- Configure WebDAV server on Apache
- Two dimensional code coding theory
- It is six orders of magnitude faster than the quantum chemical method. An adiabatic artificial neural network method based on adiabatic state can accelerate the simulation of dual nitrogen benzene der
- Solution: how to delete the information of Jack in two tables with delete in one statement in Oracle
- 面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
- 用fail2ban阻止密码尝试攻
- 三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
- 7、 Software package management
- Definition of cognition
猜你喜欢
ASP.NET Core入门一
众昂矿业:为保障萤石足量供应,开源节流势在必行
Solution: how to delete the information of Jack in two tables with delete in one statement in Oracle
室外LED屏幕防水吗?
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
MDK在头文件中使用预编译器时,#ifdef 无效的问题
Xue Jing, director of insight technology solutions: Federal learning helps secure the flow of data elements
[Android kotlin] lambda return statement and anonymous function
CVPR 2022 | TransFusion:用Transformer进行3D目标检测的激光雷达-相机融合
7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
随机推荐
CA: efficient coordinate attention mechanism for mobile terminals | CVPR 2021
Using nsproxy to forward messages
Can Console. Clear be used to only clear a line instead of whole console?
Excuse me, have you encountered this situation? CDC 1.4 cannot use timestamp when connecting to MySQL 5.7
提高MySQL深分页查询效率的三种方案
AI 绘画极简教程
6 分钟看完 BGP 协议。
Agile development / agile testing experience
Etcd 存储,Watch 以及过期机制
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
数据库锁表?别慌,本文教你如何解决
ArcGIS uses grid processing tools for image clipping
MDK在头文件中使用预编译器时,#ifdef 无效的问题
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
jsonp
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
Reinforcement learning - learning notes 1 | basic concepts
Simple understanding of binary search
再说rsync+inotify实现数据的实时备份
上汽大通MAXUS正式发布全新品牌“MIFA”,旗舰产品MIFA 9正式亮相!