In the recent groping Python+selenium automation, to achieve simulation user login search and other operations, feedback related logs, and then to Zabbix analysis, monitoring page access is normal.
Linux Firefox will need to be upgraded during the period, because the production environment is intranet environment, can not use Yum to upgrade. I would like to use Docker in an external environment to install, and then into the mirror after the migration to the intranet environment. However, because the system has poor Docker support for Red Hat 6.4, the external network will download the dependent package for the backward line installation.
- Download Firefox and related dependent components in the context of external network.
1, update the local Yum source for the Ali Yum source. (also available with a Yum source from Linux) reference: 51939362
CentOS use:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 更新yum源
Yum Clean All--clear Yum Cache
Yum Makecache--Create cache
2. Install the Yum plugin: yum-downloadonly
installing yum-downloadonly:yum-y install Yum-downloadonly
use:yum-y install--downloadonly--downloaddir=/tmp/firefox
3. Install Firefox and download dependent components
Note: RPM-IVH may report a software conflict or a dependency, if the use of RPM-E--nodeps Force assistance after installation, may appear rpm, yum commands such as abnormal or unable to connect xftp tools. You can only use Linux rescue mode for recovery. If you want to upgrade the relevant RPM package, please use RPM-UVH for related upgrade operation.
Remark: How to use Linux Rescue recovery mode ~ ~ ~
The virtual machine or the physical machine uses the mirror boot, selects the third option, the concrete method may refer to: http://blog.51cto.com/dreamlinuxc/1845327 to configure. It is important to note that when installing RPM in recovery mode, you need to use: RPM-IVH * * * * * *-root=/mnt/sysimage, otherwise rpm may fail to install, the online search for a lot of rescue mode use of the data are not clearly stated .
To be Continued ~ ~ ~
Python+selenium Automatic Simulation User Login (note: Log a forced unload rpm dependency package, the RPM, yum and other command exceptions, unable to remotely xftp tools)