当前位置:网站首页>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\ 即可。
边栏推荐
- FS4056 800mA充电ic 国产快充电源ic
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- 「小技巧」给Seurat对象瘦瘦身
- 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
- 游戏启动后提示安装HMS Core,点击取消,未再次提示安装HMS Core(初始化失败返回907135003)
- AI painting minimalist tutorial
- Read the BGP agreement in 6 minutes.
- 在 Apache 上配置 WebDAV 服务器
- Implementation mode and technical principle of MT4 cross platform merchandising system (API merchandising, EA merchandising, nj4x Merchandising)
- 【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
猜你喜欢

C#/VB.NET 给PDF文档添加文本/图像水印

面试官:Redis 过期删除策略和内存淘汰策略有什么区别?

Runc hang causes the kubernetes node notready

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

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

Talk about the design and implementation logic of payment process

Alibaba cloud award winning experience: build a highly available system with polardb-x

比量子化学方法快六个数量级,一种基于绝热状态的绝热人工神经网络方法,可加速对偶氮苯衍生物及此类分子的模拟

When MDK uses precompiler in header file, ifdef is invalid

7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
随机推荐
CVPR 2022 | transfusion: Lidar camera fusion for 3D target detection with transformer
C#/VB.NET 给PDF文档添加文本/图像水印
BackgroundWorker用法示例
Peak detection of measured signal
敏捷开发/敏捷测试感受
7、 Software package management
Apache服务器访问日志access.log设置
Reptile exercises (I)
请问大佬们有遇到这个情况吗,cdc 1.4 连接MySQL 5.7 无法使用 timestamp
ISO 27001 Information Security Management System Certification
Configure WebDAV server on Apache
8个扩展子包!RecBole推出2.0!
二分查找的简单理解
强化学习-学习笔记1 | 基础概念
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
C#/VB. Net to add text / image watermarks to PDF documents
n++也不靠谱
MySQL three-level distribution agent relationship storage
runc hang 导致 Kubernetes 节点 NotReady
mysql三级分销代理关系存储