当前位置:网站首页>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\ 即可。
边栏推荐
- Apache server access log access Log settings
- [AI system frontier dynamics, issue 40] Hinton: my deep learning career and research mind method; Google refutes rumors and gives up tensorflow; The apotheosis framework is officially open source
- 提高MySQL深分页查询效率的三种方案
- MySQL three-level distribution agent relationship storage
- When MDK uses precompiler in header file, ifdef is invalid
- AI 绘画极简教程
- After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil
- Why can the implementation class of abstractdispatcherservletinitializer be called when initializing the web container
- C#/VB. Net to add text / image watermarks to PDF documents
- Efficient! Build FTP working environment with virtual users
猜你喜欢

美团·阿里关于多模态召回的应用实践

Etcd 存储,Watch 以及过期机制

Reinforcement learning - learning notes 1 | basic concepts

阿里云有奖体验:用PolarDB-X搭建一个高可用系统

Meituan Ali's Application Practice on multimodal recall

Master the use of auto analyze in data warehouse

Golang sets the small details of goproxy proxy proxy, which is applicable to go module download timeout and Alibaba cloud image go module download timeout

DGraph: 大规模动态图数据集
高效!用虚拟用户搭建FTP工作环境

诸神黄昏时代的对比学习
随机推荐
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
go-zero微服务实战系列(九、极致优化秒杀性能)
After the game starts, you will be prompted to install HMS core. Click Cancel, and you will not be prompted to install HMS core again (initialization failure returns 907135003)
eclipse链接数据库中测试SQL语句删除出现SQL语句语法错误
[Android kotlin] lambda return statement and anonymous function
《预训练周刊》第52期:屏蔽视觉预训练、目标导向对话
7、 Software package management
Peak detection of measured signal
7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
Comprehensive evaluation of modular note taking software: craft, notation, flowus
Read the BGP agreement in 6 minutes.
Practice: fabric user certificate revocation operation process
七、软件包管理
AI 绘画极简教程
Reading cognitive Awakening
CTF competition problem solution STM32 reverse introduction
Meituan Ali's Application Practice on multimodal recall
[AI system frontier dynamics, issue 40] Hinton: my deep learning career and research mind method; Google refutes rumors and gives up tensorflow; The apotheosis framework is officially open source
XILINX/system-controller-c/BoardUI/无法连接开发板,任意操作后卡死的解决办法