首页 文章 精选 留言 我的

精选列表

搜索[搭建],共10000篇文章
优秀的个人博客,低调大师

搭建fabric-sample/balance-transfer网络详解

1.需要的文件 fabric的docker镜像文件 docker-compose.yaml文件 fabric-client的index.d.ts、fabric-ca-client的index.d.ts artifacts文件夹 2.docker-compose.yaml文件 docker-compose.yaml,主要是用来配置和启动多个节点,其中有4个fabric-peer节点、2个fabric-ca-server节点、1个fabric-orderer节点。 3.artifacts文件夹 crypto-config文件夹,是由cryptogen generate --config=./crypto-config.yaml生成。 genesis.block文件,是由configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./genesis.block生成,配置文件是configtx.yaml。 mychannel.tx文件,是由configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./mychannel.tx -channelID mychannel生成。

优秀的个人博客,低调大师

利用 ELK 搭建 Docker 容器化应用日志中心

概述 应用一旦容器化以后,需要考虑的就是如何采集位于 Docker 容器中的应用程序的打印日志供运维分析。典型的比如SpringBoot应用的日志收集。 本文即将阐述如何利用ELK日志中心来收集容器化应用程序所产生的日志,并且可以用可视化的方式对日志进行查询与分析,其架构如下图所示: 架构图 镜像准备 ElasticSearch镜像 Logstash镜像 Kibana镜像 Nginx镜像(作为容器化应用来生产日志) 开启Linux系统Rsyslog服务 修改Rsyslog服务配置文件: vim /etc/rsyslog.conf 开启下面三个参数: $ModLoad imtcp$InputTCPServerRun 514 @@localhost:4560 开启3个参数 意图很简单:让Rsyslog加载imtcp模块并监听514端口,然后将Rsyslog中收集的数

优秀的个人博客,低调大师

Selenium + Python + Chrome 自动化测试 环境搭建

一、下载Python 相关的教程很多,此处不详细记录了,下面是官网下载地址: https://www.python.org/downloads/ 我使用的python版本为 Python 3.6.1 注意:下载完成后配置python和pip的环境变量 二、下载Selenium 如果环境变量配置成功,在命令提示符下输入以下指令即可安装 pip install -U selenium 出现 Successfully 表示下载成功 三、下载对应驱动 官网(需要科学上网): https://sites.google.com/a/chromium.org/chromedriver/downloads 第三方: https://npm.taobao.org/mirrors/chromedriver 下载后放至 "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" 并添加环境变量 四、运行Python # -*- coding: utf-8 -*- from selenium import webdriver driver = webdriver.Chrome() driver.maximize_window() driver.get('http://www.baidu.com') 注意:此处运行后我报了有关driver的错误,理论上应该配了环境变量就可以了,但是配置了还是有错,最后的方法是将下载的driver放到与python文件相同的目录下 成功运行后可以自动打开百度的首页,就代表环境配置成功啦!

优秀的个人博客,低调大师

Appium+Python3+iOS真机环境搭建

前言: Appium 是一个自动化测试开源工具,支持 iOS 平台和 Android 平台上的原生应用,web 应用和混合应用。 本次环境配置相关: macOS:10.13.4 Appium-desktop:1.6.1 Xcode:9.3.1 一、环境配置 1、 安装homebrew: $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2、 安装libimobiledevice: $ brew install libimobiledevice --HEAD 3、 安装carthage: $ brew install carthage 4、安装node: $ brew install node 5、安装npm: $ brew install npm 6、安装ios-deploy: $ npm install -g ios-deploy 8、安装xcpretty: $ gem install xcpretty 9、安装appium,appium-doctor 进入官网,下载Appium-1.6.1.dmg,安装即可。 当然你可以使用命令:npm install -g appium来安装appium,但是后面就会各种报错!!(别问我是怎么知道的,我搞了2天。) $ npm install -g appium-doctor 10、使用appium-doctor 检查Appium iOS环境环境 appium-doctor --ios info AppiumDoctor Appium Doctor v.1.4.3 info AppiumDoctor ### Diagnostic starting ### info AppiumDoctor The Node.js binary was found at: /usr/local/bin/node info AppiumDoctor Node version is 10.1.0 info AppiumDoctor Xcode is installed at: /Applications/Xcode.app/Contents/Developer info AppiumDoctor Xcode Command Line Tools are installed. info AppiumDoctor DevToolsSecurity is enabled. info AppiumDoctor The Authorization DB is set up properly. info AppiumDoctor Carthage was found at: /usr/local/bin/carthage info AppiumDoctor HOME is set to: /Users/wangjuan info AppiumDoctor ### Diagnostic completed, no fix needed. ### info AppiumDoctor info AppiumDoctor Everything looks good, bye! info AppiumDoctor 二、安装WebDriverAgent 1、进入appium安装目录下WebDriverAgent文件夹,具体路径参照自己的路径,可以通过find命令查找 cd /Applications/Appium.app/Contents/Resources/app /node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent 2、在WebDriverAgent目录下执行以下命令 mkdir -p Resources/WebDriverAgent.bundle sh ./Scripts/bootstrap.sh 3、编译WebDriverAgent.xcodeproj Xcode打开当前目录下的WebDriverAgent.xcodeproj文件 WebDriverAgent.xcodeproj.png 注意️:进入项目后要编辑一些内容,请无比按照步骤全部修改。步骤见下图!! 1、TARGETS->WebDriverAgentLib的Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!) 2、TARGETS->WebDriverAgentLib的Signing选择使用个人的证书。 image.png 3、TARGETS->WebDriverAgentRunner的Signing选择使用个人的证书。 image.png 4、PROJECT->WebDriverAgent的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!) image.png 5、TARGETS->WebDriverAgentLib的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!) image.png 6、TARGETS->WebDriverAgentRunner的Product Bundle Identifier更改为自己命名的Identifier。(所有Identifier注意保持一致!!) image.png 7、Device选择已连接的测试机 8、点击build按钮来测试,按照步骤设置后,可build succeeded~ image.png 9、测试机上安装证书,执行以下命令: xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=测试机的udid' test 如果没有报错证明安装成功,同时手机上会安装一个WebDriverAgent软件。需要在手机设置->通用->设备管理->信任开发者。如下图: image.png image.png 三、Appium Client端 Appium Client有Ruby,Python,Java三个版本,可自行选择自己喜欢的安装即可,本次只针对Python版安装: pip install Appium-Python-Client 以上,接下来可以定位元素,推荐使用App Inspector,开始iOS自动化之旅吧~~

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册