当前位置:网站首页>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\ 即可。
边栏推荐
- ArcGIS uses grid processing tools for image clipping
- 室外LED屏幕防水吗?
- 实时云交互如何助力教育行业发展
- ISO 27001 Information Security Management System Certification
- 「小技巧」给Seurat对象瘦瘦身
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- Runc hang causes the kubernetes node notready
- Definition of cognition
- Runc hang causes the kubernetes node notready
- WPF double slider control and forced capture of mouse event focus
猜你喜欢

一文掌握数仓中auto analyze的使用

求解:在oracle中如何用一条语句用delete删除两个表中jack的信息

从0到1建设智能灰度数据体系:以vivo游戏中心为例

面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读

eclipse链接数据库中测试SQL语句删除出现SQL语句语法错误

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

7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多

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)

Talk about the design and implementation logic of payment process

干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
随机推荐
ASP.NET Core入门一
N++ is not reliable
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)
请问大佬们有遇到这个情况吗,cdc 1.4 连接MySQL 5.7 无法使用 timestamp
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
强化学习-学习笔记1 | 基础概念
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
用fail2ban阻止密码尝试攻
Valentine's Day confession code
爬虫练习题(一)
使用 NSProxy 实现消息转发
Besides, rsync+inotify realizes real-time backup of data
Implementation mode and technical principle of MT4 cross platform merchandising system (API merchandising, EA merchandising, nj4x Merchandising)
AI painting minimalist tutorial
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
上汽大通MAXUS正式发布全新品牌“MIFA”,旗舰产品MIFA 9正式亮相!
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Apache server access log access Log settings
CA:用于移动端的高效坐标注意力机制 | CVPR 2021
runc hang 导致 Kubernetes 节点 NotReady