首页 文章 精选 留言 我的

精选列表

搜索[搭建],共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自动化之旅吧~~

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

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

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

用户登录
用户注册