华为云云耀云服务器L实例评测|Huawei Cloud EulerOS 自动化环境部署

@[toc]

Huawei Cloud EulerOS 自动化环境部署

云耀云服务器L实例【Huawei Cloud EulerOS 2.0 64bit】

  • Python

  • Git

  • Google Chrome

  • Chromedriver

  • Selenium

  • More...

1. Python

镜像创建后自带。

2.Git

拉取项目。

bash 复制代码
sudo yum install git

3. Google Chrome

使用root权限或sudo权限登录到你的云耀云服务器L实例,然后打开终端。

添加Google Chrome的仓库:

bash 复制代码
sudo tee /etc/yum.repos.d/google-chrome.repo <<EOF
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF

安装Google Chrome:

bash 复制代码
sudo yum install google-chrome-stable

启动Google Chrome:

bash 复制代码
google-chrome

版本号查询:

bash 复制代码
google-chrome --version

Google Chrome 117.0.5938.132

4. ChromeDriver

使用root权限或sudo权限登录到云耀云服务器L实例,然后打开终端。

下载ChromeDriver:

bash 复制代码
wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE

需要下载适用于当前Google Chrome版本的ChromeDriver
使用以下命令查看最新版本的ChromeDriver:

bash 复制代码
cat LATEST_RELEASE

下载并解压ChromeDriver:

bas 复制代码
VERSION=$(cat LATEST_RELEASE)
wget https://chromedriver.storage.googleapis.com/$VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip

移动ChromeDriver到适当位置

将解压缩后的ChromeDriver二进制文件移动到一个系统路径中,以便它可以在任何地方访问。这里将它移到/usr/local/bin目录下:

bash 复制代码
sudo mv chromedriver /usr/local/bin/

授权可执行权限:

bash 复制代码
sudo chmod +x /usr/local/bin/chromedriver

验证安装:

bash 复制代码
chromedriver --version

Starting ChromeDriver 117.0.5938.132 (fa569fb226df361d676b60404623b17b16dddc8a-refs/branch-heads/5938@{#1462}) on port 9515

Only local connections are allowed.

Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.

ChromeDriver was started successfully.

当你看到最新版的selenium都落后于chrome当前版本,从这个网站找:

5. Selenium

bash 复制代码
pip install selenium==3.141.0

这个版本用的比较多,更新版本或者其它版本出错了可以试试。

6. More

学学使用 yum 指令,还有wget下载资源包。

相关推荐
金智维科技官方3 天前
智能体,重构企业自动化未来
人工智能·自动化·agent·智能体·数字员工
梦想的旅途23 天前
企业微信API:外部群自动化推送实战指南
大数据·机器人·自动化·企业微信·rpa
xiaoginshuo3 天前
流程自动化从传统RPA升级到AI Agent,如何匹配合适的自动化方案
人工智能·自动化·rpa
W-琑3 天前
软件测试-自动化测试
功能测试·自动化
牛奶咖啡133 天前
DevOps自动化运维实践_使用再生龙对Linux系统进行备份还原
运维·自动化·devops·linux系统的备份还原·linux系统克隆备份·再生龙
Youngchatgpt3 天前
如何在 Excel 中使用 ChatGPT:自动化任务和编写公式
人工智能·chatgpt·自动化·excel
GAOJ_K3 天前
同步带模组稳定运行的关键
人工智能·科技·自动化·制造
电化学仪器白超3 天前
EC20CEHDLG-128-SNNS调试记录
python·单片机·嵌入式硬件·自动化
志栋智能3 天前
安全超自动化:从被动防御到主动响应的革命
运维·网络·数据库·人工智能·安全·web安全·自动化
Gofarlic_OMS3 天前
LS-DYNA许可证全局状态及集群计算资源使用可视化监控大屏
运维·开发语言·算法·matlab·自动化